ntdll/tests: Fix access denied error in unprivileged mode.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52161 Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1c5e4d066f
commit
4ef4864672
|
@ -2477,7 +2477,7 @@ static void test_object_identity(void)
|
|||
|
||||
pNtClose( h1 );
|
||||
|
||||
h1 = CreateFileA( "\\\\.\\NUL", GENERIC_ALL, 0, NULL, OPEN_EXISTING, 0, 0 );
|
||||
h1 = CreateFileA( "\\\\.\\NUL", GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, 0 );
|
||||
ok( h1 != INVALID_HANDLE_VALUE, "CreateFile failed (%d)\n", GetLastError() );
|
||||
|
||||
h2 = NULL;
|
||||
|
@ -2490,7 +2490,7 @@ static void test_object_identity(void)
|
|||
|
||||
pNtClose( h2 );
|
||||
|
||||
h2 = CreateFileA( "\\\\.\\NUL", GENERIC_ALL, 0, NULL, OPEN_EXISTING, 0, 0 );
|
||||
h2 = CreateFileA( "\\\\.\\NUL", GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, 0 );
|
||||
ok( h2 != INVALID_HANDLE_VALUE, "CreateFile failed (%d)\n", GetLastError() );
|
||||
|
||||
status = pNtCompareObjects( h1, h2 );
|
||||
|
|
Loading…
Reference in New Issue