Module: wine Branch: master Commit: 1300cbcb2139997eb76163ed10d8934401a7e5e2 URL: https://gitlab.winehq.org/wine/wine/-/commit/1300cbcb2139997eb76163ed10d8934...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Aug 17 13:48:27 2022 +0200
wow64win: Support GCLP_MENUNAME in NtUserSetClassLongPtr thunk.
---
dlls/wow64win/user.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/dlls/wow64win/user.c b/dlls/wow64win/user.c index 1247eb86525..c71042f46f4 100644 --- a/dlls/wow64win/user.c +++ b/dlls/wow64win/user.c @@ -3297,6 +3297,16 @@ NTSTATUS WINAPI wow64_NtUserSetClassLongPtr( UINT *args ) LONG_PTR newval = get_ulong( &args ); BOOL ansi = get_ulong( &args );
+ if (offset == GCLP_MENUNAME) + { + struct client_menu_name menu_name; + struct client_menu_name32 *menu_name32 = UlongToPtr( newval ); + NtUserSetClassLong( hwnd, offset, + (UINT_PTR)client_menu_name_32to64( &menu_name, menu_name32 ), ansi ); + client_menu_name_64to32( &menu_name, menu_name32 ); + return 0; + } + return NtUserSetClassLongPtr( hwnd, offset, newval, ansi ); }