mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 757946: don't write to underlying output stream if flush() has 0 bytes remaining. r=smontagu
This commit is contained in:
parent
3969ee2f87
commit
e183918848
@ -112,6 +112,9 @@ nsConverterOutputStream::Flush()
|
||||
"1024 bytes ought to be enough for everyone");
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
if (size == 0)
|
||||
return NS_OK;
|
||||
|
||||
PRUint32 written;
|
||||
rv = mOutStream->Write(buf, size, &written);
|
||||
if (NS_FAILED(rv)) {
|
||||
|
Loading…
Reference in New Issue
Block a user