Jacek Caban : wow64win: Fix NULL msg handling in wow64_NtUserPeekMessage.

Alexandre Julliard julliard at winehq.org
Sat Aug 13 14:19:16 CDT 2022


Module: wine
Branch: master
Commit: c5d8ebe7abc145b28c9a36ed4cd674a5501b02d5
URL:    https://gitlab.winehq.org/wine/wine/-/commit/c5d8ebe7abc145b28c9a36ed4cd674a5501b02d5

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Aug 12 15:32:40 2022 +0200

wow64win: Fix NULL msg handling in wow64_NtUserPeekMessage.

---

 dlls/wow64win/user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wow64win/user.c b/dlls/wow64win/user.c
index 551ba44ccd9..6aecdacda39 100644
--- a/dlls/wow64win/user.c
+++ b/dlls/wow64win/user.c
@@ -2209,7 +2209,7 @@ NTSTATUS WINAPI wow64_NtUserPeekMessage( UINT *args )
     UINT flags = get_ulong( &args );
     MSG msg;
 
-    if (!NtUserPeekMessage( &msg, hwnd, first, last, flags )) return FALSE;
+    if (!NtUserPeekMessage( msg32 ? &msg : NULL, hwnd, first, last, flags )) return FALSE;
     msg_64to32( &msg, msg32 );
     return TRUE;
 }




More information about the wine-cvs mailing list