user32: Always flush window surfaces in PeekMessage, even with PM_NOYIELD.

This commit is contained in:
Alexandre Julliard 2012-10-01 12:12:53 +02:00
parent 0941fefbc0
commit 5db9abaf81
1 changed files with 2 additions and 1 deletions

View File

@ -3685,7 +3685,8 @@ BOOL WINAPI DECLSPEC_HOTPATCH PeekMessageW( MSG *msg_out, HWND hwnd, UINT first,
if (!peek_message( &msg, hwnd, first, last, flags, 0 ))
{
if (!(flags & PM_NOYIELD)) wow_handlers.wait_message( 0, NULL, 0, 0, 0 );
if (flags & PM_NOYIELD) flush_window_surfaces( FALSE );
else wow_handlers.wait_message( 0, NULL, 0, 0, 0 );
return FALSE;
}