From 2924f259c433bcf396fa724a7973155cd3dacaa8 Mon Sep 17 00:00:00 2001 From: "peterlubczynski%netscape.com" Date: Sat, 9 Jun 2001 20:52:18 +0000 Subject: [PATCH] Fix for converting file://c|temp to c:\temp for NP_StreamAsFile. r=av sr=waterson a=dbaron git-svn-id: svn://10.0.0.236/trunk@96789 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp | 2 +- mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp b/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp index 5a997883583..9a96521aa56 100644 --- a/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp +++ b/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp @@ -1795,7 +1795,7 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnStopRequest(nsIRequest *request, if (!pathAndFilename) mPluginStreamInfo->GetLocalCachedFile(getter_Copies(pathAndFilename)); - if (!pathAndFilename) { + if (!pathAndFilename || 0 == *pathAndFilename) { // see if it is a file channel. nsCOMPtr fileChannel = do_QueryInterface(request); if (fileChannel) diff --git a/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp b/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp index 5a997883583..9a96521aa56 100644 --- a/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp +++ b/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp @@ -1795,7 +1795,7 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnStopRequest(nsIRequest *request, if (!pathAndFilename) mPluginStreamInfo->GetLocalCachedFile(getter_Copies(pathAndFilename)); - if (!pathAndFilename) { + if (!pathAndFilename || 0 == *pathAndFilename) { // see if it is a file channel. nsCOMPtr fileChannel = do_QueryInterface(request); if (fileChannel)