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

git-svn-id: svn://10.0.0.236/trunk@32731 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jefft%netscape.com
1999-05-26 21:45:20 +00:00
parent d6bab07673
commit 347046e38e

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();