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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user