Fixed nettest to work with threaded netlib...
git-svn-id: svn://10.0.0.236/trunk@10531 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#endif
|
||||
|
||||
#include "plstr.h"
|
||||
#include "plevent.h"
|
||||
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsIInputStream.h"
|
||||
@@ -221,6 +222,7 @@ int main(int argc, char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
PL_InitializeEventsLib("");
|
||||
nsRepository::RegisterFactory(kNetServiceCID, NETLIB_DLL, PR_FALSE, PR_FALSE);
|
||||
|
||||
bTraceEnabled = PR_FALSE;
|
||||
@@ -284,6 +286,7 @@ int main(int argc, char **argv)
|
||||
|
||||
in = pURL->Open((PRInt32*)&result);
|
||||
ReadStreamSynchronously(in);
|
||||
NS_IF_RELEASE(in);
|
||||
urlLoaded = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user