Module: wine Branch: master Commit: bb9bede0e5e0c87347e9c5a79a2cc6d7cbd50179 URL: https://gitlab.winehq.org/wine/wine/-/commit/bb9bede0e5e0c87347e9c5a79a2cc6d...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Aug 17 13:28:37 2022 +0200
wow64win: Fix returning strings in NtUserGetIconInfo thunk.
---
dlls/wow64win/user.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/wow64win/user.c b/dlls/wow64win/user.c index 0d873418536..bbe3e37a24d 100644 --- a/dlls/wow64win/user.c +++ b/dlls/wow64win/user.c @@ -1981,8 +1981,16 @@ NTSTATUS WINAPI wow64_NtUserGetIconInfo( UINT *args ) info32->yHotspot = info.yHotspot; info32->hbmMask = HandleToUlong( info.hbmMask ); info32->hbmColor = HandleToUlong( info.hbmColor ); - if (module32) module32->Length = module.Length; - if (res_name32) res_name32->Length = res_name.Length; + if (module32) + { + module32->Buffer = PtrToUlong( module.Buffer ); + module32->Length = module.Length; + } + if (res_name32) + { + res_name32->Buffer = PtrToUlong( res_name.Buffer ); + res_name32->Length = res_name.Length; + } return TRUE; }