mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
fixed string length in RenderFILENAMEW()
svn path=/trunk/; revision=7478
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user