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

multibyte.
This commit is contained in:
Adam Gundy 2003-03-30 01:35:49 +00:00 committed by Alexandre Julliard
parent 9457b463e0
commit ea10ed7c11
1 changed files with 1 additions and 1 deletions

View File

@ -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);