Found out that this needs to do autoregistration to work (because it needs raptorbase).

This commit is contained in:
warren%netscape.com 1999-05-07 05:30:30 +00:00
Родитель 2bc9cf7ac9
Коммит 628c8f5664
2 изменённых файлов: 20 добавлений и 0 удалений

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

@ -19,6 +19,7 @@
#include "nsIThread.h"
#include "nsIByteBufferInputStream.h"
#include "nsIBuffer.h"
#include "nsIServiceManager.h"
#include "prprf.h"
#include "prinrval.h"
#include "plstr.h"
@ -136,6 +137,15 @@ main(int argc, char* argv[])
nsresult rv;
nsIInputStream* in;
nsIOutputStream* out;
nsIServiceManager* servMgr;
rv = NS_InitXPCOM(&servMgr);
if (NS_FAILED(rv)) return rv;
// XXX why do I have to do this?!
rv = nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup,
"components");
if (NS_FAILED(rv)) return rv;
if (argc > 1 && nsCRT::strcmp(argv[1], "-trace") == 0)
gTrace = PR_TRUE;

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

@ -19,6 +19,7 @@
#include "nsIThread.h"
#include "nsIByteBufferInputStream.h"
#include "nsIBuffer.h"
#include "nsIServiceManager.h"
#include "prprf.h"
#include "prinrval.h"
#include "plstr.h"
@ -136,6 +137,15 @@ main(int argc, char* argv[])
nsresult rv;
nsIInputStream* in;
nsIOutputStream* out;
nsIServiceManager* servMgr;
rv = NS_InitXPCOM(&servMgr);
if (NS_FAILED(rv)) return rv;
// XXX why do I have to do this?!
rv = nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup,
"components");
if (NS_FAILED(rv)) return rv;
if (argc > 1 && nsCRT::strcmp(argv[1], "-trace") == 0)
gTrace = PR_TRUE;