]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/zstream.cpp
added wxDisplay::GetClientArea() (currently implemented for single display and MSW...
[wxWidgets.git] / src / common / zstream.cpp
index 684ff82cfde0791bfe85c8f7a15bbb7b8ae86497..0b4878cf9182594e327361b924a7d775f6e8af01 100644 (file)
@@ -283,7 +283,11 @@ size_t wxZlibOutputStream::OnSysWrite(const void *buffer, size_t size)
   wxASSERT_MSG(m_deflate && m_z_buffer, wxT("Deflate stream not open"));
 
   if (!m_deflate || !m_z_buffer)
+  {
+    // notice that this will make IsOk() test just below return false
     m_lasterror = wxSTREAM_WRITE_ERROR;
+  }
+
   if (!IsOk() || !size)
     return 0;