More bad line endings

git-svn-id: svn://10.0.0.236/trunk@93839 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkaply%us.ibm.com
2001-05-03 21:15:07 +00:00
parent b050bb6446
commit 80cdfe4ce7

View File

@@ -40,7 +40,7 @@
#include "nsNetCID.h"
#if defined(XP_PC) && !defined(XP_OS2)
#include <windows.h>
#include <windows.h>
#include <direct.h>
#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());