diff options
author | Moonchild <moonchild@palemoon.org> | 2022-02-03 17:11:21 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-02-03 17:11:21 +0000 |
commit | 097fa969802f76530384926e8ef1f56777be3783 (patch) | |
tree | 8f01134d7c464a164707ce81a47d3a418eef0019 /components/profile/src/nsProfileLock.cpp | |
parent | 56b8a05db34fabefad74e20876309263066b5bce (diff) | |
download | aura-central-097fa969802f76530384926e8ef1f56777be3783.tar.gz |
Issue %3057 - Part 9: Adjust all callsites for no longer using GetNativePath
Depending on context, various solutions were used.
Diffstat (limited to 'components/profile/src/nsProfileLock.cpp')
-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; |