[ATL] Continue enumeration after a failing COM_INTERFACE_ENTRY_FUNC_BLIND

This commit is contained in:
Mark Jansen 2017-12-18 23:15:46 +01:00
parent 7ce46d59b4
commit a730e3fce1

View file

@ -1545,10 +1545,11 @@ inline HRESULT __stdcall AtlInternalQueryInterface(void *pThis, const _ATL_INTMA
else
{
hResult = pEntries[i].pFunc(pThis, iid, ppvObject, 0);
if (hResult == S_OK || (FAILED(hResult) && pEntries[i].piid != NULL))
if (hResult == S_OK)
return hResult;
if (FAILED(hResult) && pEntries[i].piid != NULL)
break;
}
break;
}
i++;
}