More bad line endings
git-svn-id: svn://10.0.0.236/trunk@93839 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user