Zebediah Figura : ntdll/tests: Fix test_user_apc() on Windows < 7.

Alexandre Julliard julliard at winehq.org
Tue Jun 28 15:54:15 CDT 2022


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

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Mon Jun 27 15:41:17 2022 -0500

ntdll/tests: Fix test_user_apc() on Windows < 7.

---

 dlls/ntdll/tests/exception.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c
index 86f2f5d6cb2..748ee0e52ee 100644
--- a/dlls/ntdll/tests/exception.c
+++ b/dlls/ntdll/tests/exception.c
@@ -8801,6 +8801,9 @@ static void test_user_apc(void)
 
         memcpy(code_mem, code, sizeof(code));
         func(RtlCaptureContext, &context);
+        /* work around broken RtlCaptureContext on Windows < 7 which doesn't set
+         * ContextFlags */
+        context.ContextFlags = CONTEXT_FULL;
     }
 #else
     RtlCaptureContext(&context);
@@ -8824,8 +8827,7 @@ static void test_user_apc(void)
         ok(!status, "Got unexpected status %#lx.\n", status);
         status = NtContinue(&c[0], TRUE );
 
-        /* Broken before Win7, in that case NtContinue returns here instead of restoring context after calling APC. */
-        ok(broken(TRUE), "Should not get here, status %#lx.\n", status);
+        ok(0, "Should not get here, status %#lx.\n", status);
         return;
     }
     ok(pass == 3, "Got unexpected pass %ld.\n", pass);




More information about the wine-cvs mailing list