fixed string length in RenderFILENAMEW()

svn path=/trunk/; revision=7478
This commit is contained in:
Martin Fuchs 2004-01-06 12:34:17 +00:00
parent a113fd463b
commit fff71811fe

View file

@ -259,7 +259,7 @@ HGLOBAL RenderFILENAMEW (LPITEMIDLIST pidlRoot, LPITEMIDLIST * apidl, UINT cidl)
if (FAILED(hr))
return 0;
size = strlenW(szTemp) + 1;
size = (strlenW(szTemp)+1) * sizeof(WCHAR);
/* fill the structure */
hGlobal = GlobalAlloc(GHND|GMEM_SHARE, size);