diff options
Diffstat (limited to 'netwerk/base')
-rw-r--r-- | netwerk/base/nsDirectoryIndexStream.cpp | 14 | ||||
-rw-r--r-- | netwerk/base/nsStandardURL.cpp | 5 |
2 files changed, 13 insertions, 6 deletions
diff --git a/netwerk/base/nsDirectoryIndexStream.cpp b/netwerk/base/nsDirectoryIndexStream.cpp index 87a57fd579..bfcc73475b 100644 --- a/netwerk/base/nsDirectoryIndexStream.cpp +++ b/netwerk/base/nsDirectoryIndexStream.cpp @@ -1,17 +1,13 @@ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* vim:set sw=4 sts=4 et cin: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - /* - - The converts a filesystem directory into an "HTTP index" stream per + This converts a filesystem directory into an "HTTP index" stream per Lou Montulli's original spec: http://www.mozilla.org/projects/netlib/dirindexformat.html - */ #include "nsEscape.h" @@ -92,7 +88,11 @@ nsDirectoryIndexStream::Init(nsIFile* aDir) if (MOZ_LOG_TEST(gLog, LogLevel::Debug)) { nsAutoCString path; +#ifdef XP_WIN + aDir->GetPersistentDescriptor(path); +#else aDir->GetNativePath(path); +#endif MOZ_LOG(gLog, LogLevel::Debug, ("nsDirectoryIndexStream[%p]: initialized on %s", this, path.get())); @@ -239,7 +239,11 @@ nsDirectoryIndexStream::Read(char* aBuf, uint32_t aCount, uint32_t* aReadCount) if (MOZ_LOG_TEST(gLog, LogLevel::Debug)) { nsAutoCString path; +#ifdef XP_WIN + current->GetPersistentDescriptor(path); +#else current->GetNativePath(path); +#endif MOZ_LOG(gLog, LogLevel::Debug, ("nsDirectoryIndexStream[%p]: iterated %s", this, path.get())); diff --git a/netwerk/base/nsStandardURL.cpp b/netwerk/base/nsStandardURL.cpp index 57337e480d..42d71620f7 100644 --- a/netwerk/base/nsStandardURL.cpp +++ b/netwerk/base/nsStandardURL.cpp @@ -1,5 +1,4 @@ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* vim:set ts=4 sw=4 sts=4 et cindent: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -3159,7 +3158,11 @@ nsStandardURL::GetFile(nsIFile **result) if (LOG_ENABLED()) { nsAutoCString path; +#ifdef XP_WIN + mFile->GetPersistentDescriptor(path); +#else mFile->GetNativePath(path); +#endif LOG(("nsStandardURL::GetFile [this=%p spec=%s resulting_path=%s]\n", this, mSpec.get(), path.get())); } |