Fix for 4224 -- Mac crash on startup in registry code. sfraser & dp, approved sar.

This commit is contained in:
sfraser%netscape.com 1999-03-24 19:55:38 +00:00
Родитель a816a29d39
Коммит 3d37126cc7
3 изменённых файлов: 6 добавлений и 14 удалений

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

@ -274,7 +274,7 @@ NS_SetupRegistry()
{
// Autoregistration happens here. The rest of RegisterComponent() calls should happen
// only for dlls not in the components directory.
#if defined(XP_UNIX) || defined(XP_PC)
// Create exeDir/"components"
nsSpecialSystemDirectory sysdir(nsSpecialSystemDirectory::OS_CurrentProcessDirectory);
sysdir += "components";
@ -289,11 +289,15 @@ NS_SetupRegistry()
*/
#endif /* XP_PC */
printf("nsComponentManager: Using components dir: %s\n", componentsDir);
#ifdef XP_MAC
nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, nsnull);
#else
nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, componentsDir);
#endif /* XP_MAC */
// XXX Look for user specific components
// XXX UNIX: ~/.mozilla/components
}
#endif
nsComponentManager::RegisterComponent(kEventQueueServiceCID, NULL, NULL, XPCOM_DLL, PR_FALSE, PR_FALSE);
nsComponentManager::RegisterComponent(kAllocatorCID, NULL, NULL, XPCOM_DLL, PR_FALSE, PR_FALSE);

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

@ -223,12 +223,6 @@ nsresult nsComponentManagerImpl::Init(void)
PlatformVersionCheck();
#endif
#if !defined(XP_UNIX) && !defined(XP_PC)
// The below code is being moved out into the applications using using
// nsSpecialSystemDirectory platform by platform.
AutoRegister(NS_Startup, NULL);
#endif /* !XP_UNIX */
return NS_OK;
}

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

@ -223,12 +223,6 @@ nsresult nsComponentManagerImpl::Init(void)
PlatformVersionCheck();
#endif
#if !defined(XP_UNIX) && !defined(XP_PC)
// The below code is being moved out into the applications using using
// nsSpecialSystemDirectory platform by platform.
AutoRegister(NS_Startup, NULL);
#endif /* !XP_UNIX */
return NS_OK;
}