[PATCH 1/1] win32u: Fix typo in NtUserGetIconInfo.

Brendan Shanks wine at gitlab.winehq.org
Tue May 24 14:42:59 CDT 2022


From: Brendan Shanks <bshanks at codeweavers.com>

Signed-off-by: Brendan Shanks <bshanks at 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



More information about the wine-devel mailing list