X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7f42cff13eaba35dda3527b2ca658dd00b9e7a46..e36e6f95aa6ef7174a35bf2ee29ecab80deeaa5d:/src/common/stream.cpp?ds=inline 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; }