From 8588562f0d23b84bdc1eeebfe3b6c6dfaf265bc1 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Sun, 1 Oct 2006 23:20:16 +0900 Subject: [PATCH] user/tests: Flush events before running mouse tests. --- dlls/user/tests/win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/user/tests/win.c b/dlls/user/tests/win.c index 42c6ed5a31f..7ad9aea7d8e 100644 --- a/dlls/user/tests/win.c +++ b/dlls/user/tests/win.c @@ -2524,6 +2524,7 @@ static void test_mouse_input(HWND hwnd) ShowWindow(popup, SW_SHOW); while (PeekMessageA(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessageA(&msg); + flush_events(); mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);