make sure stream Wrire() returns correct error code when the stream is closed

This commit is contained in:
jefft%netscape.com 1999-05-26 21:45:20 +00:00
parent dfeb81ab79
commit 6433017be7

View File

@ -308,6 +308,10 @@ nsresult nsBufferedStream::Write(const char *aBuf,
*aWriteCount = aLen;
m_DataLength += aLen;
}
else if (m_bIsClosed)
{
rv = NS_BASE_STREAM_CLOSED;
}
done:
UnlockStream();