forked from Mirrors/wine-wine
atl80: Skip NULL map entries in AtlComModuleRegisterServer.
parent
d3520ef465
commit
07065b4d93
|
@ -37,7 +37,9 @@ HRESULT WINAPI AtlComModuleRegisterServer(_ATL_COM_MODULE *mod, BOOL bRegTypeLib
|
||||||
TRACE("(%p %x %s)\n", mod, bRegTypeLib, debugstr_guid(clsid));
|
TRACE("(%p %x %s)\n", mod, bRegTypeLib, debugstr_guid(clsid));
|
||||||
|
|
||||||
for(iter = mod->m_ppAutoObjMapFirst; iter < mod->m_ppAutoObjMapLast; iter++) {
|
for(iter = mod->m_ppAutoObjMapFirst; iter < mod->m_ppAutoObjMapLast; iter++) {
|
||||||
if(!clsid || IsEqualCLSID((*iter)->pclsid, clsid)) {
|
if(!*iter || (clsid && !IsEqualCLSID((*iter)->pclsid, clsid)))
|
||||||
|
continue;
|
||||||
|
|
||||||
TRACE("Registering clsid %s\n", debugstr_guid((*iter)->pclsid));
|
TRACE("Registering clsid %s\n", debugstr_guid((*iter)->pclsid));
|
||||||
hres = (*iter)->pfnUpdateRegistry(TRUE);
|
hres = (*iter)->pfnUpdateRegistry(TRUE);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
|
@ -50,7 +52,6 @@ HRESULT WINAPI AtlComModuleRegisterServer(_ATL_COM_MODULE *mod, BOOL bRegTypeLib
|
||||||
return hres;
|
return hres;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(bRegTypeLib) {
|
if(bRegTypeLib) {
|
||||||
hres = AtlRegisterTypeLib(mod->m_hInstTypeLib, NULL);
|
hres = AtlRegisterTypeLib(mod->m_hInstTypeLib, NULL);
|
||||||
|
|
Loading…
Reference in New Issue