diff options
Diffstat (limited to 'mailnews/db/msgdb')
-rw-r--r-- | mailnews/db/msgdb/src/nsMsgDatabase.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mailnews/db/msgdb/src/nsMsgDatabase.cpp b/mailnews/db/msgdb/src/nsMsgDatabase.cpp index 31da7bc5e1..96e74359cb 100644 --- a/mailnews/db/msgdb/src/nsMsgDatabase.cpp +++ b/mailnews/db/msgdb/src/nsMsgDatabase.cpp @@ -939,7 +939,11 @@ NS_IMETHODIMP nsMsgDatabase::NotifyAnnouncerGoingAway(void) bool nsMsgDatabase::MatchDbName(nsIFile *dbName) // returns true if they match { nsCString dbPath; +#ifdef XP_WIN + dbName->GetPersistentDescriptor(dbPath); +#else dbName->GetNativePath(dbPath); +#endif return dbPath.Equals(m_dbName); } @@ -1197,7 +1201,11 @@ nsresult nsMsgDatabase::OpenInternal(nsMsgDBService *aDBService, bool aLeaveInvalidDB, bool sync) { nsAutoCString summaryFilePath; +#ifdef XP_WIN + summaryFile->GetPersistentDescriptor(summaryFilePath); +#else summaryFile->GetNativePath(summaryFilePath); +#endif MOZ_LOG(DBLog, LogLevel::Info, ("nsMsgDatabase::Open(%s, %s, %p, %s)\n", (const char*)summaryFilePath.get(), aCreate ? "TRUE":"FALSE", |