kernel32/tests: Add another error code in the CreateDirectory test.

This commit is contained in:
Alexandre Julliard 2009-02-03 22:23:19 +01:00
parent e1b80a04a0
commit 5d0f3aa33b

View file

@ -363,7 +363,7 @@ static void test_CreateDirectoryW(void)
GetTempPathW(MAX_PATH, tmpdir);
tmpdir[3] = 0; /* truncate the path */
ret = CreateDirectoryW(tmpdir, NULL);
ok(ret == FALSE && GetLastError() == ERROR_ACCESS_DENIED,
ok(ret == FALSE && (GetLastError() == ERROR_ACCESS_DENIED || GetLastError() == ERROR_ALREADY_EXISTS),
"should deny access to the drive root ret %u err %u\n", ret, GetLastError());
GetTempPathW(MAX_PATH, tmpdir);