Huw Davies : user32/tests: Restore the mouse cursor to its original position.
Alexandre Julliard
julliard at winehq.org
Tue Feb 7 16:02:29 CST 2017
Module: wine
Branch: master
Commit: 01112061c257cd77f6150dd1cde3468186e4e28c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=01112061c257cd77f6150dd1cde3468186e4e28c
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Feb 7 10:26:23 2017 +0000
user32/tests: Restore the mouse cursor to its original position.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/menu.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/user32/tests/menu.c b/dlls/user32/tests/menu.c
index a42bc1c..03454fe 100644
--- a/dlls/user32/tests/menu.c
+++ b/dlls/user32/tests/menu.c
@@ -2463,6 +2463,7 @@ static void test_menu_input(void) {
HANDLE hThread, hWnd;
DWORD tid;
ATOM aclass;
+ POINT orig_pos;
if (!pSendInput)
{
@@ -2507,6 +2508,8 @@ static void test_menu_input(void) {
ShowWindow(hWnd, SW_SHOW);
UpdateWindow(hWnd);
+ GetCursorPos(&orig_pos);
+
hThread = CreateThread(NULL, 0, test_menu_input_thread, hWnd, 0, &tid);
while(1)
{
@@ -2514,6 +2517,7 @@ static void test_menu_input(void) {
break;
while (PeekMessageA(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessageA(&msg);
}
+ SetCursorPos(orig_pos.x, orig_pos.y);
DestroyWindow(hWnd);
}
More information about the wine-cvs
mailing list