mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 519498 - Follow XPCOM rules about reading values after a failure. r=sayrer
This commit is contained in:
parent
ed6b27392e
commit
92ecfbe8b4
@ -475,6 +475,7 @@ nsBinaryInputStream::ReadBoolean(PRBool* aBoolean)
|
||||
{
|
||||
PRUint8 byteResult;
|
||||
nsresult rv = Read8(&byteResult);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
*aBoolean = !!byteResult;
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user