shell32: Use SHStrDupW in IShellFolder2::GetDetailsOf to allocate returned string.
This commit is contained in:
parent
bc9b8d82e9
commit
4c516e63d3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue