[SHELLFOLDERS] Gracefully handle NULL pidl in CDrivesFolder::BindToObject. CORE-16403

Fixes one of many crashes in shell32_winetest:shlfolder.
This commit is contained in:
Thomas Faber 2019-09-08 15:40:46 +02:00
parent ed9f0dca14
commit a66bee2837
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -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);