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

Alexandre Julliard julliard at winehq.org
Mon Oct 1 13:35:01 CDT 2012


Module: wine
Branch: master
Commit: 5db9abaf81d243b887eabcc8348b0d1cf5d581d4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5db9abaf81d243b887eabcc8348b0d1cf5d581d4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Oct  1 12:12:53 2012 +0200

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

---

 dlls/user32/message.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/message.c b/dlls/user32/message.c
index 2e81e3a..fa52207 100644
--- a/dlls/user32/message.c
+++ b/dlls/user32/message.c
@@ -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;
     }
 




More information about the wine-cvs mailing list