Commit 07065b4d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

atl80: Skip NULL map entries in AtlComModuleRegisterServer.

parent d3520ef4
......@@ -37,18 +37,19 @@ HRESULT WINAPI AtlComModuleRegisterServer(_ATL_COM_MODULE *mod, BOOL bRegTypeLib
TRACE("(%p %x %s)\n", mod, bRegTypeLib, debugstr_guid(clsid));
for(iter = mod->m_ppAutoObjMapFirst; iter < mod->m_ppAutoObjMapLast; iter++) {
if(!clsid || IsEqualCLSID((*iter)->pclsid, clsid)) {
TRACE("Registering clsid %s\n", debugstr_guid((*iter)->pclsid));
hres = (*iter)->pfnUpdateRegistry(TRUE);
if(!*iter || (clsid && !IsEqualCLSID((*iter)->pclsid, clsid)))
continue;
TRACE("Registering clsid %s\n", debugstr_guid((*iter)->pclsid));
hres = (*iter)->pfnUpdateRegistry(TRUE);
if(FAILED(hres))
return hres;
catmap = (*iter)->pfnGetCategoryMap();
if(catmap) {
hres = AtlRegisterClassCategoriesHelper((*iter)->pclsid, catmap, TRUE);
if(FAILED(hres))
return hres;
catmap = (*iter)->pfnGetCategoryMap();
if(catmap) {
hres = AtlRegisterClassCategoriesHelper((*iter)->pclsid, catmap, TRUE);
if(FAILED(hres))
return hres;
}
}
}
......
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