Commit 4f9c9a16 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Init nsIOService as soon as possible.

parent f3827223
......@@ -338,6 +338,8 @@ static BOOL load_gecko(void)
nsres = nsIComponentRegistrar_AutoRegister(registrar, gre_dir);
if(NS_FAILED(nsres))
ERR("AutoRegister(gre_dir) failed: %08lx\n", nsres);
init_nsio(pCompMgr, registrar);
}else {
ERR("NS_GetComponentRegistrar failed: %08lx\n", nsres);
}
......@@ -358,7 +360,6 @@ static BOOL load_gecko(void)
if(registrar) {
register_nsservice(registrar);
init_nsio(pCompMgr, registrar);
nsIComponentRegistrar_Release(registrar);
}
......
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