Fixed small bug related to m_lastcount in wxInputStream::Read

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guillermo Rodriguez Garcia 1999-12-09 13:41:52 +00:00
parent b3d810c0b3
commit d314c3bbb0

View File

@ -585,11 +585,10 @@ wxInputStream& wxInputStream::Read(void *buffer, size_t size)
m_lasterror = wxStream_NOERROR;
return *this;
}
size -= retsize;
buf += retsize;
size -= retsize;
buf += retsize;
// GRG: shouldn't we also add retsize to m_lastcount here?
m_lastcount = OnSysRead(buf, size);
m_lastcount = OnSysRead(buf, size) + retsize;
return *this;
}