Connor McAdams : user32/tests: Add missing winevents to test_DoubleSetCapture() message sequences.

Alexandre Julliard julliard at winehq.org
Tue Sep 28 16:01:58 CDT 2021


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

Author: Connor McAdams <cmcadams at codeweavers.com>
Date:   Mon Sep 27 18:28:13 2021 -0400

user32/tests: Add missing winevents to test_DoubleSetCapture() message sequences.

Signed-off-by: Connor McAdams <cmcadams at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/msg.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index abb0dc1d97f..9602649600f 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -18458,6 +18458,9 @@ static void test_InSendMessage(void)
 
 static const struct message DoubleSetCaptureSeq[] =
 {
+    { EVENT_SYSTEM_CAPTURESTART, winevent_hook|wparam|lparam|winevent_hook_todo, 0, 0 },
+    { EVENT_SYSTEM_CAPTUREEND, winevent_hook|wparam|lparam|winevent_hook_todo, 0, 0 },
+    { EVENT_SYSTEM_CAPTURESTART, winevent_hook|wparam|lparam|winevent_hook_todo, 0, 0 },
     { WM_CAPTURECHANGED, sent },
     { 0 }
 };
@@ -18753,16 +18756,6 @@ START_TEST(msg)
     test_layered_window();
     test_TrackPopupMenu();
     test_TrackPopupMenuEmpty();
-
-    /* Fix message sequences before removing 4 lines below */
-    if (pUnhookWinEvent && hEvent_hook)
-    {
-        ret = pUnhookWinEvent(hEvent_hook);
-        ok( ret, "UnhookWinEvent error %d\n", GetLastError());
-        pUnhookWinEvent = 0;
-    }
-    hEvent_hook = 0;
-
     test_DoubleSetCapture();
     /* keep it the last test, under Windows it tends to break the tests
      * which rely on active/foreground windows being correct.




More information about the wine-cvs mailing list