mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +00: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:
parent
ed9f0dca14
commit
a66bee2837
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue