Module: wine Branch: master Commit: cdf3872f59d7fc237eb932a3425cb4267e93de4b URL: http://source.winehq.org/git/wine.git/?a=commit;h=cdf3872f59d7fc237eb932a342...
Author: Huw Davies huw@codeweavers.com Date: Thu Feb 2 12:00:37 2017 +0000
user32/tests: Restore the mouse cursor to its original position.
Signed-off-by: Huw Davies huw@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/user32/tests/input.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c index 6684089..94e98af 100644 --- a/dlls/user32/tests/input.c +++ b/dlls/user32/tests/input.c @@ -1927,9 +1927,11 @@ static void test_Input_mouse(void) struct thread_data thread_data; HANDLE thread; DWORD thread_id; - POINT pt; + POINT pt, pt_org; MSG msg;
+ GetCursorPos(&pt_org); + button_win = CreateWindowA("button", "button", WS_VISIBLE | WS_POPUP, 100, 100, 100, 100, 0, NULL, NULL, NULL); ok(button_win != 0, "CreateWindow failed\n"); @@ -2129,6 +2131,7 @@ static void test_Input_mouse(void) ok(got_button_up, "expected WM_LBUTTONUP message\n"); DestroyWindow(hwnd); ok(ReleaseCapture(), "ReleaseCapture failed\n"); + SetCursorPos(pt_org.x, pt_org.y);
CloseHandle(thread_data.start_event); CloseHandle(thread_data.end_event);