kernel32/tests: Add another error code in the CreateDirectory test.
This commit is contained in:
parent
e1b80a04a0
commit
5d0f3aa33b
|
@ -363,7 +363,7 @@ static void test_CreateDirectoryW(void)
|
||||||
GetTempPathW(MAX_PATH, tmpdir);
|
GetTempPathW(MAX_PATH, tmpdir);
|
||||||
tmpdir[3] = 0; /* truncate the path */
|
tmpdir[3] = 0; /* truncate the path */
|
||||||
ret = CreateDirectoryW(tmpdir, NULL);
|
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());
|
"should deny access to the drive root ret %u err %u\n", ret, GetLastError());
|
||||||
|
|
||||||
GetTempPathW(MAX_PATH, tmpdir);
|
GetTempPathW(MAX_PATH, tmpdir);
|
||||||
|
|
Loading…
Reference in New Issue