From ea10ed7c11cd082fe68fda5e3dc347904f547a09 Mon Sep 17 00:00:00 2001 From: Adam Gundy Date: Sun, 30 Mar 2003 01:35:49 +0000 Subject: [PATCH] Don't convert uninitialized bytes of the filename from wide to multibyte. --- dlls/shell32/folders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/folders.c b/dlls/shell32/folders.c index ff8ea2a1b3..1b81d5dde8 100644 --- a/dlls/shell32/folders.c +++ b/dlls/shell32/folders.c @@ -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);