Jinoh Kang : ntdll/tests: Fix access denied error in unprivileged mode.
Alexandre Julliard
julliard at winehq.org
Mon Dec 13 15:59:53 CST 2021
Module: wine
Branch: master
Commit: 4ef486467254441e46aadfbb709c0952bc75bcce
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4ef486467254441e46aadfbb709c0952bc75bcce
Author: Jinoh Kang <jinoh.kang.kr at gmail.com>
Date: Sun Dec 12 02:03:32 2021 +0900
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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/tests/om.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/tests/om.c b/dlls/ntdll/tests/om.c
index c32136763a1..f872d6709a1 100644
--- a/dlls/ntdll/tests/om.c
+++ b/dlls/ntdll/tests/om.c
@@ -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 );
More information about the wine-cvs
mailing list