mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
[SHELLFOLDERS] Gracefully handle NULL pidl in CDrivesFolder::BindToObject. CORE-16403
Fixes one of many crashes in shell32_winetest:shlfolder.
This commit is contained in:
@@ -536,6 +536,9 @@ HRESULT WINAPI CDrivesFolder::BindToObject(PCUIDLIST_RELATIVE pidl, LPBC pbcRese
|
|||||||
TRACE("(%p)->(pidl=%p,%p,%s,%p)\n", this,
|
TRACE("(%p)->(pidl=%p,%p,%s,%p)\n", this,
|
||||||
pidl, pbcReserved, shdebugstr_guid(&riid), ppvOut);
|
pidl, pbcReserved, shdebugstr_guid(&riid), ppvOut);
|
||||||
|
|
||||||
|
if (!pidl)
|
||||||
|
return E_INVALIDARG;
|
||||||
|
|
||||||
if (_ILIsSpecialFolder(pidl))
|
if (_ILIsSpecialFolder(pidl))
|
||||||
return m_regFolder->BindToObject(pidl, pbcReserved, riid, ppvOut);
|
return m_regFolder->BindToObject(pidl, pbcReserved, riid, ppvOut);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user