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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user