bug 235537 r=neil sr=darin
Always return an error code when MakeInputStream fails, instead of just returning a null stream git-svn-id: svn://10.0.0.236/trunk@153331 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f359adf9bf
commit
f949051c54
@ -261,6 +261,7 @@ nsresult nsIconChannel::MakeInputStream(nsIInputStream** _retval, PRBool nonBloc
|
||||
filePath = NS_LITERAL_CSTRING(".") + fileExt;
|
||||
}
|
||||
|
||||
rv = NS_ERROR_NOT_AVAILABLE;
|
||||
// (1) get an hIcon for the file
|
||||
if (SHGetFileInfo(filePath.get(), FILE_ATTRIBUTE_ARCHIVE, &sfi, sizeof(sfi), infoFlags) && sfi.hIcon)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user