diff --git a/xpcom/components/nsRepository.cpp b/xpcom/components/nsRepository.cpp index 85490fda263..a6fdb9935d0 100644 --- a/xpcom/components/nsRepository.cpp +++ b/xpcom/components/nsRepository.cpp @@ -919,9 +919,10 @@ nsresult nsRepository::Initialize(void) PR_LOG(logmodule, PR_LOG_ALWAYS, ("nsRepository: Initialized.")); #ifdef USE_NSREG NR_StartupRegistry(); -#endif + // Check the version of registry. Nuke old versions. platformVersionCheck(); +#endif // Initiate autoreg AutoRegister(NS_Startup, NULL); diff --git a/xpcom/src/nsRepository.cpp b/xpcom/src/nsRepository.cpp index 85490fda263..a6fdb9935d0 100644 --- a/xpcom/src/nsRepository.cpp +++ b/xpcom/src/nsRepository.cpp @@ -919,9 +919,10 @@ nsresult nsRepository::Initialize(void) PR_LOG(logmodule, PR_LOG_ALWAYS, ("nsRepository: Initialized.")); #ifdef USE_NSREG NR_StartupRegistry(); -#endif + // Check the version of registry. Nuke old versions. platformVersionCheck(); +#endif // Initiate autoreg AutoRegister(NS_Startup, NULL);