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:
dp%netscape.com 1999-04-01 07:48:25 +00:00
Родитель a9b7e961d5
Коммит 629aace8e8
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -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;