summaryrefslogtreecommitdiff
path: root/mailnews/addrbook/src/nsAddrDatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mailnews/addrbook/src/nsAddrDatabase.cpp')
-rw-r--r--mailnews/addrbook/src/nsAddrDatabase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mailnews/addrbook/src/nsAddrDatabase.cpp b/mailnews/addrbook/src/nsAddrDatabase.cpp
index 463437958f..51dbe8237f 100644
--- a/mailnews/addrbook/src/nsAddrDatabase.cpp
+++ b/mailnews/addrbook/src/nsAddrDatabase.cpp
@@ -482,7 +482,11 @@ NS_IMETHODIMP nsAddrDatabase::OpenMDB(nsIFile *dbName, bool create)
nsIMdbThumb *thumb = nullptr;
nsAutoCString filePath;
+#ifdef XP_WIN
+ ret = dbName->GetPersistentDescriptor(filePath);
+#else
ret = dbName->GetNativePath(filePath);
+#endif
NS_ENSURE_SUCCESS(ret, ret);
nsIMdbHeap* dbHeap = nullptr;