From 776b090afdf41c55b8dc5620a9d9d7ad7c69062e Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Tue, 13 Apr 1999 06:14:20 +0000 Subject: [PATCH] fix unix part of bug 2414 git-svn-id: svn://10.0.0.236/branches/SeaMonkey_M4_BRANCH@27316 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/network/module/nsNetFactory.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/network/module/nsNetFactory.cpp b/mozilla/network/module/nsNetFactory.cpp index aa91d27e849..ac35e06216e 100644 --- a/mozilla/network/module/nsNetFactory.cpp +++ b/mozilla/network/module/nsNetFactory.cpp @@ -126,12 +126,18 @@ nsresult nsNetFactory::CreateInstance(nsISupports *aOuter, *aResult = NULL; if (mClassID.Equals(kNetServiceCID)) { +#ifdef XP_PC + /* This ifdef fixes bug 2414. Unix and mac initialize NS_InitINetService in + NS_NewINetService so this initialization was being done twice. Therefore + to fix the bug we are ifdef-ing this section to be done for windows only */ + // No need create a new one if we've already got one. if (!gNetlibService) { res = NS_InitINetService(); if (res != NS_OK) return NS_ERROR_FAILURE; } +#endif // Hook the caller up. res = NS_NewINetService((nsINetService**)aResult, aOuter);