]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mstream.cpp
gcc warning about printf() format mismatch corrected
[wxWidgets.git] / src / common / mstream.cpp
index 8e81abd394773fa7df8e8db6c2f01e2bb9153b37..5d13a0a2e0d61e0135de406303d7abd02633fb39 100644 (file)
@@ -53,6 +53,7 @@ char wxMemoryInputStream::Peek()
 
 size_t wxMemoryInputStream::OnSysRead(void *buffer, size_t nbytes)
 {
+  m_lastcount = 0;
   return m_i_streambuf->Read(buffer, nbytes);
 }
 
@@ -86,6 +87,7 @@ wxMemoryOutputStream::~wxMemoryOutputStream()
 
 size_t wxMemoryOutputStream::OnSysWrite(const void *buffer, size_t nbytes)
 {
+  m_lastcount = 0;
   return m_o_streambuf->Write(buffer, nbytes);
 }