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
This commit is contained in:
peterlubczynski%netscape.com 2001-06-09 20:52:18 +00:00
parent 4b0979f1a8
commit 2924f259c4
2 changed files with 2 additions and 2 deletions

View File

@ -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<nsIFileChannel> fileChannel = do_QueryInterface(request);
if (fileChannel)

View File

@ -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<nsIFileChannel> fileChannel = do_QueryInterface(request);
if (fileChannel)