mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +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);
|
||||
if (!psd->str.pOleStr)
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
wcscpy(psd->str.pOleStr, buffer);
|
||||
psd->str.uType = STRRET_WSTR;
|
||||
CloseHandle(hFile);
|
||||
|
|
Loading…
Reference in a new issue