https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e5da567d876d31ecbab3a9061b731d32af092430

commit e5da567d876d31ecbab3a9061b731d32af092430
Author:     Timo Kreuzer <[email protected]>
AuthorDate: Mon Jan 30 19:28:16 2023 +0200
Commit:     Timo Kreuzer <[email protected]>
CommitDate: Tue Jan 31 18:39:21 2023 +0100

    [WIN32KNT_APITEST] Fix tests for NtGdiPolyPolyDraw
---
 modules/rostests/apitests/win32nt/ntgdi/NtGdiPolyPolyDraw.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules/rostests/apitests/win32nt/ntgdi/NtGdiPolyPolyDraw.c 
b/modules/rostests/apitests/win32nt/ntgdi/NtGdiPolyPolyDraw.c
index daf0840abbf..82b99fd0cff 100644
--- a/modules/rostests/apitests/win32nt/ntgdi/NtGdiPolyPolyDraw.c
+++ b/modules/rostests/apitests/win32nt/ntgdi/NtGdiPolyPolyDraw.c
@@ -82,20 +82,20 @@ Test_Params(void)
     TEST(ret == 0);
     TEST(GetLastError() == ERROR_INVALID_HANDLE);
 
-    SetLastError(0);
+    SetLastError(0xdeadbeef);
     ret = NtGdiPolyPolyDraw(hDC, Points, Count1, 2, 3);
     TEST(ret == 0);
-    TEST(GetLastError() == ERROR_INVALID_HANDLE);
+    ok_long(GetLastError(), 0xdeadbeef);
 
-    SetLastError(0);
+    SetLastError(0xdeadbeef);
     ret = NtGdiPolyPolyDraw(hDC, Points, Count1, 2, 4);
     TEST(ret == 0);
-    TEST(GetLastError() == ERROR_INVALID_HANDLE);
+    ok_long(GetLastError(), 0xdeadbeef);
 
-    SetLastError(0);
+    SetLastError(0xdeadbeef);
     ret = NtGdiPolyPolyDraw(hDC, Points, Count1, 2, 5);
     TEST(ret == 0);
-    TEST(GetLastError() == ERROR_INVALID_HANDLE);
+    ok_long(GetLastError(), 0xdeadbeef);
 
     SetLastError(0);
     ret = NtGdiPolyPolyDraw(hDC, Points, Count1, 2, 6);

Reply via email to