Module: wine Branch: master Commit: 7d1c59edcee16dbd81fb086fbc2739921f73ece2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7d1c59edcee16dbd81fb086fbc...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Jul 31 00:51:59 2007 +0200
mshtml: Added mshtml.tlb registration.
---
dlls/mshtml/main.c | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/main.c b/dlls/mshtml/main.c index fc224bc..3f8131c 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; }