diff options
Diffstat (limited to 'dom/plugins/base/nsPluginHost.cpp')
-rw-r--r-- | dom/plugins/base/nsPluginHost.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dom/plugins/base/nsPluginHost.cpp b/dom/plugins/base/nsPluginHost.cpp index c9c1b71fe0..cb9990bdd5 100644 --- a/dom/plugins/base/nsPluginHost.cpp +++ b/dom/plugins/base/nsPluginHost.cpp @@ -2037,10 +2037,14 @@ nsresult nsPluginHost::ScanPluginsDirectory(nsIFile *pluginsDir, #ifdef PLUGIN_LOGGING nsAutoCString dirPath; +#ifdef XP_WIN + pluginsDir->GetPersistentDescriptor(dirPath); +#else pluginsDir->GetNativePath(dirPath); +#endif PLUGIN_LOG(PLUGIN_LOG_BASIC, ("nsPluginHost::ScanPluginsDirectory dir=%s\n", dirPath.get())); -#endif +#endif // PLUGIN_LOGGING nsCOMPtr<nsISimpleEnumerator> iter; rv = pluginsDir->GetDirectoryEntries(getter_AddRefs(iter)); @@ -3615,7 +3619,11 @@ nsPluginHost::CreateTempFileToPost(const char *aPostDataURL, nsIFile **aTmpFile) } rv = inFile->GetFileSize(&fileSize); if (NS_FAILED(rv)) return rv; +#ifdef XP_WIN + rv = inFile->GetPersistentDescriptor(filename); +#else rv = inFile->GetNativePath(filename); +#endif if (NS_FAILED(rv)) return rv; if (fileSize != 0) { |