mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
make sure stream Wrire() returns correct error code when the stream is closed
This commit is contained in:
parent
dfeb81ab79
commit
6433017be7
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user