Commit 62e1a0f2 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

In AtlModuleInit do not call initialization procedures that are NULL.

parent 84ae4d8b
...@@ -65,11 +65,15 @@ HRESULT WINAPI AtlModuleInit(_ATL_MODULEA* pM, _ATL_OBJMAP_ENTRYA* p, HINSTANCE ...@@ -65,11 +65,15 @@ HRESULT WINAPI AtlModuleInit(_ATL_MODULEA* pM, _ATL_OBJMAP_ENTRYA* p, HINSTANCE
/* call mains */ /* call mains */
i = 0; i = 0;
while (pM->m_pObjMap[i].pclsid != NULL) if (pM->m_pObjMap != NULL)
{ {
TRACE("Initializing object %i\n",i); while (pM->m_pObjMap[i].pclsid != NULL)
p[i].pfnObjectMain(TRUE); {
i++; TRACE("Initializing object %i %p\n",i,p[i].pfnObjectMain);
if (p[i].pfnObjectMain)
p[i].pfnObjectMain(TRUE);
i++;
}
} }
return S_OK; return S_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment