mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 06:38:36 +00:00
Check return from PlatformInit, and return if it failed.
Bug 43347 This was a patch submitted, I have reviewed it (r=rayw) it provides a softer landing when problems occur in the initialization. There is no difference in behavior if the initialization was successful.
This commit is contained in:
parent
a7c0075080
commit
8ddce2ac9b
@ -319,7 +319,13 @@ nsresult nsComponentManagerImpl::Init(void)
|
||||
|
||||
#ifdef USE_REGISTRY
|
||||
NR_StartupRegistry();
|
||||
PlatformInit();
|
||||
{
|
||||
nsresult ret;
|
||||
ret = PlatformInit();
|
||||
if( NS_FAILED( ret ) ) {
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
PR_LOG(nsComponentManagerLog, PR_LOG_ALWAYS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user