wine/dlls/kernel/tests path.c

Alexandre Julliard julliard at wine.codeweavers.com
Thu Nov 10 05:16:20 CST 2005


ChangeSet ID:	21210
CVSROOT:	/opt/cvs-commit
Module name:	wine
Changes by:	julliard at winehq.org	2005/11/10 05:16:20

Modified files:
	dlls/kernel/tests: path.c 

Log message:
	Saulius Krasuckas <saulius.krasuckas at ieee.org>
	Add error code valid for Win9x and XP.

Patch: http://cvs.winehq.org/patch.py?id=21210

Old revision  New revision  Changes     Path
 1.30          1.31          +4 -2       wine/dlls/kernel/tests/path.c

Index: wine/dlls/kernel/tests/path.c
diff -u -p wine/dlls/kernel/tests/path.c:1.30 wine/dlls/kernel/tests/path.c:1.31
--- wine/dlls/kernel/tests/path.c:1.30	10 Nov 2005 11:16:20 -0000
+++ wine/dlls/kernel/tests/path.c	10 Nov 2005 11:16:20 -0000
@@ -364,10 +364,12 @@ static void test_InitPathA(CHAR *newdir,
   sprintf(tmpstr,"%s\\%s",newdir,LONGDIR);
   ok(CreateDirectoryA(tmpstr,NULL),"CreateDirectoryA failed\n");
   bRes = CreateDirectoryA("c:",NULL);
-  ok(!bRes && GetLastError() == ERROR_ACCESS_DENIED,
+  ok(!bRes && (GetLastError() == ERROR_ACCESS_DENIED  || 
+               GetLastError() == ERROR_ALREADY_EXISTS),
      "CreateDirectoryA(\"c:\" should have failed (%ld)\n", GetLastError());
   bRes = CreateDirectoryA("c:\\",NULL);
-  ok(!bRes && GetLastError() == ERROR_ACCESS_DENIED,
+  ok(!bRes && (GetLastError() == ERROR_ACCESS_DENIED  ||
+               GetLastError() == ERROR_ALREADY_EXISTS),
      "CreateDirectoryA(\"c:\\\" should have failed (%ld)\n", GetLastError());
   sprintf(tmpstr,"%s\\%s\\%s",newdir,SHORTDIR,SHORTFILE);
   hndl=CreateFileA(tmpstr,GENERIC_WRITE,0,NULL,



More information about the wine-cvs mailing list