Alexandre Julliard : kernelbase/tests: Fix some test failures on Windows.

Alexandre Julliard julliard at winehq.org
Thu Dec 16 16:39:21 CST 2021


Module: wine
Branch: master
Commit: f08eb97c48f16c25024eb2f7b669fb3d82ffec34
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f08eb97c48f16c25024eb2f7b669fb3d82ffec34

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Dec 16 18:03:55 2021 +0100

kernelbase/tests: Fix some test failures on Windows.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernelbase/tests/process.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernelbase/tests/process.c b/dlls/kernelbase/tests/process.c
index 7aa07df6e4e..a28411f4e5b 100644
--- a/dlls/kernelbase/tests/process.c
+++ b/dlls/kernelbase/tests/process.c
@@ -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);




More information about the wine-cvs mailing list