fixed LastRead() after Read(wxOutputStream&) (patch 1658301)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-02-12 19:08:13 +00:00
parent 419c224122
commit 68f146206f

View File

@@ -869,6 +869,7 @@ char wxInputStream::Peek()
wxInputStream& wxInputStream::Read(wxOutputStream& stream_out)
{
size_t lastcount = 0;
char buf[BUF_TEMP_SIZE];
for ( ;; )
@@ -879,8 +880,12 @@ wxInputStream& wxInputStream::Read(wxOutputStream& stream_out)
if ( stream_out.Write(buf, bytes_read).LastWrite() != bytes_read )
break;
lastcount += bytes_read;
}
m_lastcount = lastcount;
return *this;
}