Commit 732376d5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

atl: Added support for category maps in AtlModuleRegisterServer.

parent cc18fc0f
......@@ -220,6 +220,17 @@ HRESULT WINAPI AtlModuleRegisterServer(_ATL_MODULEW* pM, BOOL bRegTypeLib, const
hRes = obj->pfnUpdateRegistry(TRUE); /* register */
if (FAILED(hRes))
return hRes;
if(pM->cbSize > ATLVer1Size) {
const struct _ATL_CATMAP_ENTRY *catmap;
catmap = ((const _ATL_OBJMAP_ENTRYW*)obj)->pfnGetCategoryMap();
if(catmap) {
hRes = AtlRegisterClassCategoriesHelper(obj->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