mshtml: Download Gecko in DllRegisterServer.

This commit is contained in:
Jacek Caban 2009-11-12 14:52:43 +01:00 committed by Alexandre Julliard
parent ca32265d88
commit 10b0b86cbc
2 changed files with 8 additions and 5 deletions

View File

@ -391,9 +391,6 @@ static HRESULT register_server(BOOL do_register)
if(FAILED(hres))
ERR("typelib registration failed: %08x\n", hres);
if(do_register && SUCCEEDED(hres))
load_gecko(TRUE);
return hres;
}
@ -405,7 +402,13 @@ static HRESULT register_server(BOOL do_register)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return register_server(TRUE);
HRESULT hres;
hres = register_server(TRUE);
if(SUCCEEDED(hres))
load_gecko(FALSE);
return hres;
}
/***********************************************************************

View File

@ -1615,7 +1615,7 @@ NSContainer *NSContainer_Create(HTMLDocumentObj *doc, NSContainer *parent)
NSContainer *ret;
nsresult nsres;
if(!load_gecko(FALSE))
if(!load_gecko(TRUE))
return NULL;
ret = heap_alloc_zero(sizeof(NSContainer));