[PATCH 1/2] comctl32/tests: Move the cursor off the parent window to avoid mouse messages.

Huw Davies huw at codeweavers.com
Wed Aug 31 05:18:41 CDT 2016


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/comctl32/tests/syslink.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/comctl32/tests/syslink.c b/dlls/comctl32/tests/syslink.c
index 918b774..fb5a2d1 100644
--- a/dlls/comctl32/tests/syslink.c
+++ b/dlls/comctl32/tests/syslink.c
@@ -192,6 +192,7 @@ START_TEST(syslink)
     BOOL rc;
     HWND hWndSysLink;
     LONG oldstyle;
+    POINT orig_pos;
 
     if (!load_v6_module(&ctx_cookie, &hCtx))
         return;
@@ -214,6 +215,10 @@ START_TEST(syslink)
         return;
     }
 
+    /* Move the cursor off the parent window */
+    GetCursorPos(&orig_pos);
+    SetCursorPos(400, 400);
+
     init_msg_sequences(sequences, NUM_MSG_SEQUENCE);
 
     /* Create parent window */
@@ -251,4 +256,5 @@ START_TEST(syslink)
     DestroyWindow(hWndSysLink);
     DestroyWindow(hWndParent);
     unload_v6_module(ctx_cookie, hCtx);
+    SetCursorPos(orig_pos.x, orig_pos.y);
 }
-- 
2.8.2




More information about the wine-patches mailing list