Check for NULL before doing IsEqualGUID() in

AtlInternalQueryInterface.
This commit is contained in:
Stefan Leichter 2004-09-01 17:28:19 +00:00 committed by Alexandre Julliard
parent 9bf729b7cb
commit 3cc00b5088
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ HRESULT WINAPI AtlInternalQueryInterface(LPVOID this, const _ATL_INTMAP_ENTRY* p
TRACE("Trying entry %i (%p %li %p)\n",i,pEntries[i].piid,
pEntries[i].dw, pEntries[i].pFunc);
if (IsEqualGUID(iid,pEntries[i].piid))
if (pEntries[i].piid && IsEqualGUID(iid,pEntries[i].piid))
{
TRACE("MATCH\n");
if (pEntries[i].pFunc == (_ATL_CREATORARGFUNC*)1)