kernelbase/tests: Fix some test failures on Windows.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3f80ea69fb
commit
f08eb97c48
|
@ -63,7 +63,7 @@ static void test_CompareObjectHandles(void)
|
|||
|
||||
CloseHandle( h1 );
|
||||
|
||||
h1 = CreateFileA( "\\\\.\\NUL", GENERIC_ALL, 0, NULL, OPEN_EXISTING, 0, 0 );
|
||||
h1 = CreateFileA( "\\\\.\\NUL", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0 );
|
||||
ok( h1 != INVALID_HANDLE_VALUE, "CreateFile failed (%d)\n", GetLastError() );
|
||||
|
||||
h2 = NULL;
|
||||
|
@ -76,7 +76,7 @@ static void test_CompareObjectHandles(void)
|
|||
|
||||
CloseHandle( h2 );
|
||||
|
||||
h2 = CreateFileA( "\\\\.\\NUL", GENERIC_ALL, 0, NULL, OPEN_EXISTING, 0, 0 );
|
||||
h2 = CreateFileA( "\\\\.\\NUL", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0 );
|
||||
ok( h2 != INVALID_HANDLE_VALUE, "CreateFile failed (%d)\n", GetLastError() );
|
||||
|
||||
SetLastError(0);
|
||||
|
|
Loading…
Reference in New Issue