Commit 5db9abaf authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 0941fefb
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment