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:
neil%parkwaycc.co.uk
2006-01-10 12:04:08 +00:00
parent 6edfbc5614
commit dc8c31dbad

View File

@@ -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)