Make moz-icon: work on Windows drives b=236227 r=mscott sr=tor
git-svn-id: svn://10.0.0.236/trunk@187235 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -290,7 +290,13 @@ nsresult nsIconChannel::MakeInputStream(nsIInputStream** _retval, PRBool nonBloc
|
||||
if (localFile)
|
||||
{
|
||||
localFile->GetNativePath(filePath);
|
||||
localFile->Exists(&fileExists);
|
||||
if (filePath.Last() == ':')
|
||||
filePath.Append('\\');
|
||||
else {
|
||||
localFile->Exists(&fileExists);
|
||||
if (!fileExists)
|
||||
localFile->GetNativeLeafName(filePath);
|
||||
}
|
||||
}
|
||||
|
||||
if (!fileExists)
|
||||
|
||||
Reference in New Issue
Block a user