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:
parent
4b0979f1a8
commit
2924f259c4
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user