summaryrefslogtreecommitdiff
path: root/uriloader/exthandler/nsMIMEInfoImpl.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-05-09 22:38:16 +0000
committerMoonchild <moonchild@palemoon.org>2022-05-09 22:38:16 +0000
commit9edf1b7bea5ff893f88911fc1a6a2dca3faeece9 (patch)
tree98bd9b0c7e3ca3e517e9e43dea157707b13f6bdb /uriloader/exthandler/nsMIMEInfoImpl.cpp
parent930ddd693be251c86ee904dafbaef38234b692c0 (diff)
downloaduxp-getnativepath-work.tar.gz
Issue #1896 - Port GetNativePath changes from GRE.getnativepath-work
Diffstat (limited to 'uriloader/exthandler/nsMIMEInfoImpl.cpp')
-rw-r--r--uriloader/exthandler/nsMIMEInfoImpl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/uriloader/exthandler/nsMIMEInfoImpl.cpp b/uriloader/exthandler/nsMIMEInfoImpl.cpp
index 59886e4651..ca23722740 100644
--- a/uriloader/exthandler/nsMIMEInfoImpl.cpp
+++ b/uriloader/exthandler/nsMIMEInfoImpl.cpp
@@ -305,7 +305,11 @@ nsMIMEInfoBase::LaunchWithFile(nsIFile* aFile)
NS_ENSURE_SUCCESS(rv, rv);
nsAutoCString path;
+#ifdef XP_WIN
+ aFile->GetPersistentDescriptor(path);
+#else
aFile->GetNativePath(path);
+#endif
return LaunchWithIProcess(executable, path);
}
@@ -423,7 +427,11 @@ nsMIMEInfoImpl::LaunchDefaultWithFile(nsIFile* aFile)
return NS_ERROR_FILE_NOT_FOUND;
nsAutoCString nativePath;
+#ifdef XP_WIN
+ aFile->GetPersistentDescriptor(nativePath);
+#else
aFile->GetNativePath(nativePath);
+#endif
return LaunchWithIProcess(mDefaultApplication, nativePath);
}