Alexandre Julliard : user32/tests: Fix a couple of race conditions.

Alexandre Julliard julliard at winehq.org
Tue Mar 23 12:12:48 CDT 2010


Module: wine
Branch: master
Commit: ce31f2da0a18e30007d313a258cbf56c265678bc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ce31f2da0a18e30007d313a258cbf56c265678bc

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Mar 23 13:16:04 2010 +0100

user32/tests: Fix a couple of race conditions.

---

 dlls/user32/tests/win.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index af0fa49..96033a2 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -3010,7 +3010,7 @@ static void test_mouse_input(HWND hwnd)
     BOOL ret;
     LRESULT res;
 
-    ShowWindow(hwnd, SW_SHOW);
+    ShowWindow(hwnd, SW_SHOWNORMAL);
     UpdateWindow(hwnd);
     SetWindowPos( hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE );
 
@@ -5218,6 +5218,7 @@ static void run_NCRedrawLoop(UINT flags)
                          NULL, NULL, 0, &flags);
     ShowWindow(hwnd, SW_SHOW);
     UpdateWindow(hwnd);
+    flush_events( FALSE );
     while(PeekMessage(&msg, hwnd, 0, 0, PM_REMOVE) != 0)
     {
         if (msg.message == WM_PAINT) loopcount++;




More information about the wine-cvs mailing list