summaryrefslogtreecommitdiff
path: root/mailnews/imap/src/nsImapMailFolder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mailnews/imap/src/nsImapMailFolder.cpp')
-rw-r--r--mailnews/imap/src/nsImapMailFolder.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/mailnews/imap/src/nsImapMailFolder.cpp b/mailnews/imap/src/nsImapMailFolder.cpp
index da1411cd08..8823b818e7 100644
--- a/mailnews/imap/src/nsImapMailFolder.cpp
+++ b/mailnews/imap/src/nsImapMailFolder.cpp
@@ -3203,7 +3203,11 @@ NS_IMETHODIMP nsImapMailFolder::BeginCopy(nsIMsgDBHdr *message)
if (NS_FAILED(rv))
{
nsCString nativePath;
+#ifdef XP_WIN
+ m_copyState->m_tmpFile->GetPersistentDescriptor(nativePath);
+#else
m_copyState->m_tmpFile->GetNativePath(nativePath);
+#endif
MOZ_LOG(IMAP, mozilla::LogLevel::Info, ("couldn't remove prev temp file %s: %lx\n", nativePath.get(), rv));
}
m_copyState->m_tmpFile = nullptr;
@@ -8883,7 +8887,11 @@ NS_IMETHODIMP nsImapMailFolder::RenameSubFolders(nsIMsgWindow *msgWindow, nsIMsg
newParentPathFile->AppendNative(oldLeafName);
nsCString newPathStr;
+#ifdef XP_WIN
+ newParentPathFile->GetPersistentDescriptor(newPathStr);
+#else
newParentPathFile->GetNativePath(newPathStr);
+#endif
nsCOMPtr<nsIFile> newPathFile = do_CreateInstance(NS_LOCAL_FILE_CONTRACTID, &rv);
NS_ENSURE_SUCCESS(rv, rv);