Commit 10b0b86c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Download Gecko in DllRegisterServer.

parent ca32265d
......@@ -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;
}
/***********************************************************************
......
......@@ -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));
......
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