Don't convert uninitialized bytes of the filename from wide to
multibyte.
This commit is contained in:
parent
9457b463e0
commit
ea10ed7c11
|
@ -340,7 +340,7 @@ static HRESULT WINAPI IExtractIconA_fnGetIconLocation(
|
||||||
TRACE("(%p) (flags=%u %p %u %p %p)\n", This, uFlags, szIconFile, cchMax, piIndex, pwFlags);
|
TRACE("(%p) (flags=%u %p %u %p %p)\n", This, uFlags, szIconFile, cchMax, piIndex, pwFlags);
|
||||||
|
|
||||||
ret = IExtractIconW_GetIconLocation(This, uFlags, lpwstrFile, 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);
|
HeapFree(GetProcessHeap(), 0, lpwstrFile);
|
||||||
|
|
||||||
TRACE("-- %s %x\n", szIconFile, *piIndex);
|
TRACE("-- %s %x\n", szIconFile, *piIndex);
|
||||||
|
|
Loading…
Reference in New Issue