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
This commit is contained in:
parent
6245e5b6e8
commit
bc83ea24b4
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user