From 63f8bdaa4e9a4774a57e58a2da67d7a9dea55c5a Mon Sep 17 00:00:00 2001 From: Saulius Krasuckas Date: Thu, 10 Nov 2005 11:16:20 +0000 Subject: [PATCH] Add error code valid for Win9x and XP. --- dlls/kernel/tests/path.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/kernel/tests/path.c b/dlls/kernel/tests/path.c index 2f298acfac6..304cb581490 100644 --- a/dlls/kernel/tests/path.c +++ b/dlls/kernel/tests/path.c @@ -364,10 +364,12 @@ static void test_InitPathA(CHAR *newdir, CHAR *curDrive, CHAR *otherDrive) 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, -- 2.11.4.GIT