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
Родитель 50ea6429f0
Коммит f99dbbbc26
1 изменённых файлов: 4 добавлений и 1 удалений

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

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