X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7f42cff13eaba35dda3527b2ca658dd00b9e7a46..58a33cb4e6e2de9d6ea6da16b52e53d840797059:/src/common/stream.cpp diff --git a/src/common/stream.cpp b/src/common/stream.cpp index 95947e6032..305c8c5128 100644 --- a/src/common/stream.cpp +++ b/src/common/stream.cpp @@ -251,8 +251,8 @@ void wxStreamBuffer::PutChar(char c) return; } - if (!GetDataLeft() && !FlushBuffer()) { - CHECK_ERROR(wxStream_READ_ERR); + if (GetDataLeft() == 0 && !FlushBuffer()) { + CHECK_ERROR(wxStream_WRITE_ERR); return; }