summaryrefslogtreecommitdiff
path: root/mailnews/local
diff options
context:
space:
mode:
Diffstat (limited to 'mailnews/local')
-rw-r--r--mailnews/local/src/nsLocalUtils.cpp4
-rw-r--r--mailnews/local/src/nsMailboxService.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/mailnews/local/src/nsLocalUtils.cpp b/mailnews/local/src/nsLocalUtils.cpp
index 14a6a2f218..352ba9f5ad 100644
--- a/mailnews/local/src/nsLocalUtils.cpp
+++ b/mailnews/local/src/nsLocalUtils.cpp
@@ -150,7 +150,11 @@ nsLocalURI2Path(const char* rootURI, const char* uriStr,
nsCString localNativePath;
+#ifdef XP_WIN
+ localPath->GetPersistentDescriptor(localNativePath);
+#else
localPath->GetNativePath(localNativePath);
+#endif
nsEscapeNativePath(localNativePath);
pathResult = localNativePath.get();
const char *curPos = uriStr + PL_strlen(rootURI);
diff --git a/mailnews/local/src/nsMailboxService.cpp b/mailnews/local/src/nsMailboxService.cpp
index 00a0d87c8f..3621df262c 100644
--- a/mailnews/local/src/nsMailboxService.cpp
+++ b/mailnews/local/src/nsMailboxService.cpp
@@ -52,7 +52,11 @@ nsresult nsMailboxService::ParseMailbox(nsIMsgWindow *aMsgWindow, nsIFile *aMail
// okay now generate the url string
nsCString mailboxPath;
+#ifdef XP_WIN
+ aMailboxPath->GetPersistentDescriptor(mailboxPath);
+#else
aMailboxPath->GetNativePath(mailboxPath);
+#endif
nsAutoCString buf;
MsgEscapeURL(mailboxPath,
nsINetUtil::ESCAPE_URL_MINIMAL | nsINetUtil::ESCAPE_URL_FORCED, buf);