summaryrefslogtreecommitdiff
path: root/mailnews/import/outlook/src
diff options
context:
space:
mode:
Diffstat (limited to 'mailnews/import/outlook/src')
-rw-r--r--mailnews/import/outlook/src/MapiMessage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mailnews/import/outlook/src/MapiMessage.cpp b/mailnews/import/outlook/src/MapiMessage.cpp
index 6b02db3145..2536c16809 100644
--- a/mailnews/import/outlook/src/MapiMessage.cpp
+++ b/mailnews/import/outlook/src/MapiMessage.cpp
@@ -887,7 +887,11 @@ bool CMapiMessage::CopyBinAttachToFile(LPATTACH lpAttach,
NS_ENSURE_SUCCESS(rv, false);
nsCString tmpPath;
+#ifdef XP_WIN
+ _tmp_file->GetPersistentDescriptor(tmpPath);
+#else
_tmp_file->GetNativePath(tmpPath);
+#endif
LPSTREAM lpStreamFile;
HRESULT hr = CMapiApi::OpenStreamOnFile(gpMapiAllocateBuffer, gpMapiFreeBuffer, STGM_READWRITE | STGM_CREATE,
const_cast<char*>(tmpPath.get()), NULL, &lpStreamFile);