[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-cvs
Subject: =?UTF-8?Q?Jacek_Caban_=3A_wow64win=3A_Return_class_atom_from_NtUserGetCla?= =?UTF-8?Q?ssInfoEx_thunk
From: Alexandre Julliard <julliard () winehq ! org>
Date: 2022-08-16 20:57:43
Message-ID: E1oO3hT-0001oN-HP () winehq ! org
[Download RAW message or body]
Module: wine
Branch: master
Commit: 876a35fb294d80d999a58dd1ac80ecf6139c1aa4
URL: https://gitlab.winehq.org/wine/wine/-/commit/876a35fb294d80d999a58dd1ac80ecf6139c1aa4
Author: Jacek Caban <jacek@codeweavers.com>
Date: Tue Aug 16 14:45:11 2022 +0200
wow64win: Return class atom from NtUserGetClassInfoEx thunk.
---
dlls/wow64win/user.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/wow64win/user.c b/dlls/wow64win/user.c
index 8fb70c39fb5..5474abd76da 100644
--- a/dlls/wow64win/user.c
+++ b/dlls/wow64win/user.c
@@ -1759,11 +1759,12 @@ NTSTATUS WINAPI wow64_NtUserGetClassInfoEx( UINT *args )
struct client_menu_name client_name;
UNICODE_STRING name;
WNDCLASSEXW wc;
+ ATOM ret;
wc.cbSize = sizeof(wc);
- if (!NtUserGetClassInfoEx( instance, unicode_str_32to64( &name, name32 ), &wc,
- &client_name, ansi ))
- return FALSE;
+ if (!(ret = NtUserGetClassInfoEx( instance, unicode_str_32to64( &name, name32 ), &wc,
+ &client_name, ansi )))
+ return 0;
wc32->style = wc.style;
wc32->lpfnWndProc = PtrToUlong( wc.lpfnWndProc );
@@ -1777,7 +1778,7 @@ NTSTATUS WINAPI wow64_NtUserGetClassInfoEx( UINT *args )
wc32->lpszClassName = PtrToUlong( wc.lpszClassName );
wc32->hIconSm = HandleToUlong( wc.hIconSm );
client_menu_name_64to32( &client_name, client_name32 );
- return TRUE;
+ return ret;
}
NTSTATUS WINAPI wow64_NtUserGetClassName( UINT *args )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic