mirror of
https://github.com/reactos/reactos.git
synced 2024-09-17 00:00:42 +00:00
fixed string length in RenderFILENAMEW()
svn path=/trunk/; revision=7478
This commit is contained in:
parent
a113fd463b
commit
fff71811fe
|
@ -259,7 +259,7 @@ HGLOBAL RenderFILENAMEW (LPITEMIDLIST pidlRoot, LPITEMIDLIST * apidl, UINT cidl)
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
size = strlenW(szTemp) + 1;
|
size = (strlenW(szTemp)+1) * sizeof(WCHAR);
|
||||||
|
|
||||||
/* fill the structure */
|
/* fill the structure */
|
||||||
hGlobal = GlobalAlloc(GHND|GMEM_SHARE, size);
|
hGlobal = GlobalAlloc(GHND|GMEM_SHARE, size);
|
||||||
|
|
Loading…
Reference in a new issue