Flush pending messages before testing painting message sequences
Dmitry Timoshkov
dmitry at baikal.ru
Wed Oct 27 05:18:30 CDT 2004
Hello,
in the case a window was created under mouse cursor paint message test
fails because it doesn't expect to see mouse messages in the queue.
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Flush pending messages before testing painting message sequences.
--- cvs/hq/wine/dlls/user/tests/msg.c 2004-10-27 16:35:52.000000000 +0900
+++ wine/dlls/user/tests/msg.c 2004-10-27 19:01:08.000000000 +0900
@@ -2845,6 +2845,9 @@ static void test_paint_messages(void)
/* now with frame */
SetRectRgn( hrgn, -5, -5, 20, 20 );
+ /* flush pending messages */
+ while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessage( &msg );
+
flush_sequence();
RedrawWindow( hwnd, NULL, hrgn, RDW_INVALIDATE | RDW_FRAME );
ok_sequence( WmEmptySeq, "EmptySeq", FALSE );
More information about the wine-patches
mailing list