зеркало из https://github.com/mozilla/gecko-dev.git
Unix Only:
XPCOM was being initialized from a static initializer in netlib. Removed the static inializer. This will get xpcom to be initialized after main() not before it.
This commit is contained in:
Родитель
a9b7e961d5
Коммит
629aace8e8
|
@ -80,7 +80,7 @@ static HINSTANCE g_hInst = NULL;
|
|||
#ifdef NS_NET_FILE
|
||||
|
||||
#include "nsNetFile.h"
|
||||
#ifdef XP_MAC
|
||||
#if defined(XP_MAC) || defined(XP_UNIX)
|
||||
static nsNetFileInit* netFileInit = nsnull;
|
||||
#else
|
||||
static nsNetFileInit netFileInit;
|
||||
|
@ -1303,7 +1303,7 @@ struct nsNetlibInit {
|
|||
}
|
||||
};
|
||||
|
||||
#ifdef XP_MAC
|
||||
#if defined(XP_MAC) || defined(XP_UNIX)
|
||||
static nsNetlibInit* netlibInit = nsnull;
|
||||
#else
|
||||
static nsNetlibInit netlibInit;
|
||||
|
@ -1320,7 +1320,7 @@ NS_NET nsresult NS_NewINetService(nsINetService** aInstancePtrResult,
|
|||
return NS_ERROR_NO_AGGREGATION;
|
||||
}
|
||||
|
||||
#ifdef XP_MAC
|
||||
#if defined(XP_MAC) || defined(XP_UNIX)
|
||||
// Perform static initialization...
|
||||
if (nsnull == netlibInit) {
|
||||
netlibInit = new nsNetlibInit;
|
||||
|
|
Загрузка…
Ссылка в новой задаче