mirror of
https://github.com/reactos/wine.git
synced 2025-02-12 23:58:56 +00:00
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…
x
Reference in New Issue
Block a user