fixes 98735. r=adamlock, sr=rpotts. Basic problem is that the first argument of NS_InitXPCOM2 was not returning an nsIServiceManager

This commit is contained in:
dougt%netscape.com 2001-09-10 04:28:37 +00:00
Родитель d28253c519
Коммит 3a71bd783f
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -178,7 +178,6 @@ extern PRBool gShuttingDown;
static nsModuleComponentInfo components[] = {
COMPONENT(MEMORY, nsMemoryImpl::Create),
#define NS_ERRORSERVICE_CLASSNAME NS_ERRORSERVICE_NAME
COMPONENT(ERRORSERVICE, nsErrorService::Create),
@ -341,6 +340,10 @@ nsresult NS_COM NS_InitXPCOM2(nsIServiceManager* *result,
gServiceManager = NS_STATIC_CAST(nsIServiceManager*, compMgr);
nsComponentManagerImpl::gComponentManager = compMgr;
if (result) {
NS_ADDREF(*result = gServiceManager);
}
}
nsCOMPtr<nsIMemory> memory = getter_AddRefs(nsMemory::GetGlobalMemoryService());