Make Eof() consistent with other streams

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2005-11-30 12:41:48 +00:00
parent 4d53859584
commit 8e50d1add6
4 changed files with 10 additions and 14 deletions

View File

@@ -169,7 +169,7 @@ size_t wxStoredInputStream::OnSysRead(void *buffer, size_t size)
count = m_parent_i_stream->Read(buffer, count).LastRead();
m_pos += count;
if (m_pos == m_len)
if (m_pos == m_len && count < size)
m_lasterror = wxSTREAM_EOF;
else if (!*m_parent_i_stream)
m_lasterror = wxSTREAM_READ_ERROR;