From: Guilhem Lavaux Date: Wed, 1 Sep 1999 18:05:15 +0000 (+0000) Subject: Write 0 to m_lastcount in OnSysRead and OnSysWrite X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bc83ea24b4244aca0476db4516ace2e947f7ee5a Write 0 to m_lastcount in OnSysRead and OnSysWrite git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/mstream.cpp b/src/common/mstream.cpp index 8e81abd394..5d13a0a2e0 100644 --- a/src/common/mstream.cpp +++ b/src/common/mstream.cpp @@ -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); }