git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35486
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( m_stream )
m_stream->Reset();
if ( m_stream )
m_stream->Reset();
if ( !HasBuffer() )
{
wxInputStream *inStream = GetInputStream();
wxCHECK_MSG( inStream, 0, _T("should have a stream in wxStreamBuffer") );
if ( !HasBuffer() )
{
wxInputStream *inStream = GetInputStream();
wxCHECK_MSG( inStream, 0, _T("should have a stream in wxStreamBuffer") );
- read = inStream->OnSysRead(buffer, size);
+ readBytes = inStream->OnSysRead(buffer, size);
}
else // we have a buffer, use it
{
}
else // we have a buffer, use it
{
- read = orig_size - size;
+ readBytes = orig_size - size;
- m_stream->m_lastcount = read;
+ m_stream->m_lastcount = readBytes;
}
// this should really be called "Copy()"
}
// this should really be called "Copy()"
return stream.Write(eol, wxStrlen(eol));
}
return stream.Write(eol, wxStrlen(eol));
}
-#endif
- // wxUSE_STREAMS