mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
fixed string length in RenderFILENAMEW()
svn path=/trunk/; revision=7478
This commit is contained in:
parent
a113fd463b
commit
fff71811fe
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue