diff options
Diffstat (limited to 'components/profile/src')
-rw-r--r-- | components/profile/src/nsProfileLock.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/profile/src/nsProfileLock.cpp b/components/profile/src/nsProfileLock.cpp index 654fbcd46..5b6fbe0dc 100644 --- a/components/profile/src/nsProfileLock.cpp +++ b/components/profile/src/nsProfileLock.cpp @@ -192,7 +192,11 @@ nsresult nsProfileLock::LockWithFcntl(nsIFile *aLockFile) nsresult rv = NS_OK; nsAutoCString lockFilePath; +#ifdef XP_WIN + rv = aLockFile->GetPersistentDescriptor(lockFilePath); +#else rv = aLockFile->GetNativePath(lockFilePath); +#endif if (NS_FAILED(rv)) { NS_ERROR("Could not get native path"); return rv; @@ -298,7 +302,11 @@ nsresult nsProfileLock::LockWithSymlink(nsIFile *aLockFile, bool aHaveFcntlLock) { nsresult rv; nsAutoCString lockFilePath; +#ifdef XP_WIN + rv = aLockFile->GetPersistentDescriptor(lockFilePath); +#else rv = aLockFile->GetNativePath(lockFilePath); +#endif if (NS_FAILED(rv)) { NS_ERROR("Could not get native path"); return rv; |