зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a7c0075080
Коммит
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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче