зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d28253c519
Коммит
3a71bd783f
|
@ -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());
|
||||
|
|
Загрузка…
Ссылка в новой задаче