X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cd25b18c8e7e8d77b1a5847f289afec6e114fbd5..12234741d9a82790cac2733e88ca64610283f5fa:/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); }