--- cvs/hq/wine/dlls/user/tests/win.c Mon Oct 02 11:54:08 2006 +++ wine/dlls/user/tests/win.c Tue Oct 03 03:27:46 2006 @@ -2398,7 +2398,6 @@ static void test_keyboard_input(HWND hwn ShowWindow(hwnd, SW_SHOW); UpdateWindow(hwnd); - flush_events(); ok(GetActiveWindow() == hwnd, "wrong active window %p\n", GetActiveWindow()); @@ -2406,6 +2405,7 @@ static void test_keyboard_input(HWND hwn ok(GetFocus() == hwnd, "wrong focus window %p\n", GetFocus()); while (PeekMessageA(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessageA(&msg); + flush_events(); PostMessageA(hwnd, WM_KEYDOWN, 0, 0); ok(PeekMessageA(&msg, 0, 0, 0, PM_REMOVE), "no message available\n");