diff --git a/mozilla/netwerk/base/src/nsStdURL.cpp b/mozilla/netwerk/base/src/nsStdURL.cpp index 09a4e1e9dae..29e37b53e8f 100644 --- a/mozilla/netwerk/base/src/nsStdURL.cpp +++ b/mozilla/netwerk/base/src/nsStdURL.cpp @@ -40,7 +40,7 @@ #include "nsNetCID.h" #if defined(XP_PC) && !defined(XP_OS2) -#include +#include #include #endif @@ -1036,19 +1036,19 @@ nsStdURL::GetFile(nsIFile * *aFile) } } - if ((path.CharAt(0) == '/' && path.CharAt(1) == '/')) { + if ((path.CharAt(0) == '/' && path.CharAt(1) == '/')) { // unc path -#ifdef DEBUG_dougt - printf("+++ accessing UNC path\n"); -#endif - } - else if (path.CharAt(1) != ':') { - char driveLetter = toupper( _getdrive() ) + 'A' - 1; - path.Insert(driveLetter, 0); +#ifdef DEBUG_dougt + printf("+++ accessing UNC path\n"); +#endif + } + else if (path.CharAt(1) != ':') { + char driveLetter = toupper( _getdrive() ) + 'A' - 1; + path.Insert(driveLetter, 0); path.Insert(":\\", 1); - } - - path.ReplaceChar('/', '\\'); + } + + path.ReplaceChar('/', '\\'); #endif nsUnescape((char*)path.get());