X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/10793ebfbb49d48e6a97f8e2d02081f458bd80b4..edc0a395c60f72a065d451778d64969739bf9534:/src/common/zstream.cpp diff --git a/src/common/zstream.cpp b/src/common/zstream.cpp index ab71f710f8..0b4878cf91 100644 --- a/src/common/zstream.cpp +++ b/src/common/zstream.cpp @@ -284,8 +284,8 @@ size_t wxZlibOutputStream::OnSysWrite(const void *buffer, size_t size) if (!m_deflate || !m_z_buffer) { + // notice that this will make IsOk() test just below return false m_lasterror = wxSTREAM_WRITE_ERROR; - return 0; } if (!IsOk() || !size)