mshtml: Init nsIOService as soon as possible.

This commit is contained in:
Jacek Caban 2006-02-24 20:27:38 +01:00 committed by Alexandre Julliard
parent f382722390
commit 4f9c9a16ad
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}