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
This commit is contained in:
parent
10793ebfbb
commit
517cce713e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user