From 3cc00b5088563beafb2a8249e242a993270fdc2b Mon Sep 17 00:00:00 2001 From: Stefan Leichter Date: Wed, 1 Sep 2004 17:28:19 +0000 Subject: [PATCH] Check for NULL before doing IsEqualGUID() in AtlInternalQueryInterface. --- dlls/atl/atl_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/atl/atl_main.c b/dlls/atl/atl_main.c index 4c496980f3d..e8f1c45f26e 100644 --- a/dlls/atl/atl_main.c +++ b/dlls/atl/atl_main.c @@ -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) -- 2.11.4.GIT