Jacek Caban : wow64win: Fix error handling in wow64_NtUserGetMessage.
Alexandre Julliard
julliard at winehq.org
Sat Aug 13 14:19:16 CDT 2022
Module: wine
Branch: master
Commit: 901ccc8e612cf6e100d44809621fec81428a4db5
URL: https://gitlab.winehq.org/wine/wine/-/commit/901ccc8e612cf6e100d44809621fec81428a4db5
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Aug 12 15:29:48 2022 +0200
wow64win: Fix error handling in wow64_NtUserGetMessage.
---
dlls/wow64win/user.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/wow64win/user.c b/dlls/wow64win/user.c
index 7c6abd5bef6..551ba44ccd9 100644
--- a/dlls/wow64win/user.c
+++ b/dlls/wow64win/user.c
@@ -1565,10 +1565,11 @@ NTSTATUS WINAPI wow64_NtUserGetMessage( UINT *args )
UINT first = get_ulong( &args );
UINT last = get_ulong( &args );
MSG msg;
+ int ret;
- if (!NtUserGetMessage( &msg, hwnd, first, last )) return FALSE;
- msg_64to32( &msg, msg32 );
- return TRUE;
+ ret = NtUserGetMessage( &msg, hwnd, first, last );
+ if (ret != -1) msg_64to32( &msg, msg32 );
+ return ret;
}
NTSTATUS WINAPI wow64_NtUserGetMouseMovePointsEx( UINT *args )
More information about the wine-cvs
mailing list