From 7d1c59edcee16dbd81fb086fbc2739921f73ece2 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 31 Jul 2007 00:51:59 +0200 Subject: [PATCH] mshtml: Added mshtml.tlb registration. --- dlls/mshtml/main.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/dlls/mshtml/main.c b/dlls/mshtml/main.c index fc224bc3f21..3f8131c66e8 100644 --- a/dlls/mshtml/main.c +++ b/dlls/mshtml/main.c @@ -376,6 +376,26 @@ static HRESULT register_server(BOOL do_register) for(i=0; i < sizeof(pse)/sizeof(pse[0]); i++) mshtml_free(pse[i].pszValue); + if(FAILED(hres)) { + ERR("RegInstall failed: %08x\n", hres); + return hres; + } + + if(do_register) { + ITypeLib *typelib; + + static const WCHAR wszMSHTML[] = {'m','s','h','t','m','l','.','t','l','b',0}; + + hres = LoadTypeLibEx(wszMSHTML, REGKIND_REGISTER, &typelib); + if(SUCCEEDED(hres)) + ITypeLib_Release(typelib); + }else { + hres = UnRegisterTypeLib(&LIBID_MSHTML, 4, 0, LOCALE_SYSTEM_DEFAULT, SYS_WIN32); + } + + if(FAILED(hres)) + ERR("typelib registration failed: %08x\n", hres); + return hres; }