[SHELL32]

* Plug a leak. CID 1206904.
CORE-7975

svn path=/trunk/; revision=63652
This commit is contained in:
Amine Khaldi 2014-06-28 09:57:09 +00:00
parent b4ccb18968
commit efbd5b7a32

View file

@ -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);