user32/tests: Fix a couple of race conditions.

This commit is contained in:
Alexandre Julliard 2010-03-23 13:16:04 +01:00
parent 1d453a1ff0
commit ce31f2da0a
1 changed files with 2 additions and 1 deletions

View File

@ -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++;