mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
[SHELL32]
* Plug a leak. CID 1206904. CORE-7975 svn path=/trunk/; revision=63652
This commit is contained in:
parent
b4ccb18968
commit
efbd5b7a32
1 changed files with 3 additions and 0 deletions
|
@ -609,7 +609,10 @@ HRESULT WINAPI CFontsFolder::GetDetailsOf(LPCITEMIDLIST pidl, UINT iColumn, SHEL
|
||||||
{
|
{
|
||||||
psd->str.pOleStr = (LPWSTR)CoTaskMemAlloc(wcslen(buffer) + 1);
|
psd->str.pOleStr = (LPWSTR)CoTaskMemAlloc(wcslen(buffer) + 1);
|
||||||
if (!psd->str.pOleStr)
|
if (!psd->str.pOleStr)
|
||||||
|
{
|
||||||
|
CloseHandle(hFile);
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
}
|
||||||
wcscpy(psd->str.pOleStr, buffer);
|
wcscpy(psd->str.pOleStr, buffer);
|
||||||
psd->str.uType = STRRET_WSTR;
|
psd->str.uType = STRRET_WSTR;
|
||||||
CloseHandle(hFile);
|
CloseHandle(hFile);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue