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:
@@ -585,11 +585,10 @@ wxInputStream& wxInputStream::Read(void *buffer, size_t size)
|
|||||||
m_lasterror = wxStream_NOERROR;
|
m_lasterror = wxStream_NOERROR;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
size -= retsize;
|
size -= retsize;
|
||||||
buf += retsize;
|
buf += retsize;
|
||||||
|
|
||||||
// GRG: shouldn't we also add retsize to m_lastcount here?
|
m_lastcount = OnSysRead(buf, size) + retsize;
|
||||||
m_lastcount = OnSysRead(buf, size);
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user