Commit b88ba537 authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

win32u: Fix typo in NtUserGetIconInfo.

parent b90662e6
...@@ -600,7 +600,7 @@ BOOL WINAPI NtUserGetIconInfo( HICON icon, ICONINFO *info, UNICODE_STRING *modul ...@@ -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) ); size_t size = min( res_name->MaximumLength, lstrlenW( obj->resname) * sizeof(WCHAR) );
if (size) memcpy( res_name->Buffer, obj->resname, size ); 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 */
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment