From: Vadim Zeitlin Date: Tue, 7 Mar 2006 23:40:06 +0000 (+0000) Subject: oops, undid last commit, the extra test is unneded (but a comment explaining why... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/517cce713e1f345bbf656ef5f02ab2f18f278491 oops, undid last commit, the extra test is unneded (but a comment explaining why it isn't probably wouldn't hurt) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)