X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cd25b18c8e7e8d77b1a5847f289afec6e114fbd5..f7a11f8c8e665992e2d1956b2b89d2f562c92669:/src/common/mstream.cpp 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); }