Bug 519498 - Follow XPCOM rules about reading values after a failure. r=sayrer

This commit is contained in:
Blake Kaplan 2009-09-30 15:15:51 -07:00
parent ed6b27392e
commit 92ecfbe8b4

View File

@ -475,6 +475,7 @@ nsBinaryInputStream::ReadBoolean(PRBool* aBoolean)
{
PRUint8 byteResult;
nsresult rv = Read8(&byteResult);
if (NS_FAILED(rv)) return rv;
*aBoolean = !!byteResult;
return rv;
}