mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:03:00 +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))
|
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…
Add table
Add a link
Reference in a new issue