shell32: Use SHStrDupW in IShellFolder2::GetDetailsOf to allocate returned string.

This commit is contained in:
Thomas Weidenmueller 2007-11-01 16:02:57 -06:00 committed by Alexandre Julliard
parent bc9b8d82e9
commit 4c516e63d3
1 changed files with 1 additions and 2 deletions

View File

@ -439,8 +439,7 @@ static HRESULT WINAPI RecycleBin_GetDetailsOf(IShellFolder2 *iface, LPCITEMIDLIS
}
pDetails->str.uType = STRRET_WSTR;
pDetails->str.u.pOleStr = StrDupW(buffer);
return (pDetails->str.u.pOleStr != NULL ? S_OK : E_OUTOFMEMORY);
return SHStrDupW(buffer, &pDetails->str.u.pOleStr);
}
static HRESULT WINAPI RecycleBin_MapColumnToSCID(IShellFolder2 *iface, UINT iColumn, SHCOLUMNID *pscid)