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:
rayw%netscape.com 2000-08-18 20:51:37 +00:00
Родитель a7c0075080
Коммит 8ddce2ac9b
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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,