[PATCH 0/1] MR124: win32u: Fix typo in NtUserGetIconInfo.
Fixes Plants vs Zombies: GOTY, Geometry Dash, and likely other apps/games. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/124
From: Brendan Shanks <bshanks(a)codeweavers.com> Signed-off-by: Brendan Shanks <bshanks(a)codeweavers.com> --- dlls/win32u/cursoricon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/win32u/cursoricon.c b/dlls/win32u/cursoricon.c index 032110b26d0..e51feb87115 100644 --- a/dlls/win32u/cursoricon.c +++ b/dlls/win32u/cursoricon.c @@ -600,7 +600,7 @@ BOOL WINAPI NtUserGetIconInfo( HICON icon, ICONINFO *info, UNICODE_STRING *modul { size_t size = min( res_name->MaximumLength, lstrlenW( obj->resname) * sizeof(WCHAR) ); if (size) memcpy( res_name->Buffer, obj->resname, size ); - module->Length = size / sizeof(WCHAR); /* length in chars, not bytes */ + res_name->Length = size / sizeof(WCHAR); /* length in chars, not bytes */ } } } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/124
This merge request was approved by Huw Davies. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/124
participants (3)
-
Brendan Shanks -
Brendan Shanks (@bshanks) -
Huw Davies (@huw)