diff options
author | Moonchild <moonchild@palemoon.org> | 2022-05-09 22:38:16 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-05-09 22:38:16 +0000 |
commit | 9edf1b7bea5ff893f88911fc1a6a2dca3faeece9 (patch) | |
tree | 98bd9b0c7e3ca3e517e9e43dea157707b13f6bdb /mailnews/addrbook/src/nsAddrDatabase.cpp | |
parent | 930ddd693be251c86ee904dafbaef38234b692c0 (diff) | |
download | uxp-9edf1b7bea5ff893f88911fc1a6a2dca3faeece9.tar.gz |
Issue #1896 - Port GetNativePath changes from GRE.getnativepath-work
Diffstat (limited to 'mailnews/addrbook/src/nsAddrDatabase.cpp')
-rw-r--r-- | mailnews/addrbook/src/nsAddrDatabase.cpp | 4 |
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; |