Skip to content
Snippets Groups Projects
Commit ea10ed7c authored by Adam Gundy's avatar Adam Gundy Committed by Alexandre Julliard
Browse files

Don't convert uninitialized bytes of the filename from wide to

multibyte.
parent 9457b463
No related branches found
No related tags found
No related merge requests found
......@@ -340,7 +340,7 @@ static HRESULT WINAPI IExtractIconA_fnGetIconLocation(
TRACE("(%p) (flags=%u %p %u %p %p)\n", This, uFlags, szIconFile, cchMax, piIndex, pwFlags);
ret = IExtractIconW_GetIconLocation(This, uFlags, lpwstrFile, cchMax, piIndex, pwFlags);
WideCharToMultiByte(CP_ACP, 0, lpwstrFile, cchMax, szIconFile, cchMax, NULL, NULL);
WideCharToMultiByte(CP_ACP, 0, lpwstrFile, -1, szIconFile, cchMax, NULL, NULL);
HeapFree(GetProcessHeap(), 0, lpwstrFile);
TRACE("-- %s %x\n", szIconFile, *piIndex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment