+ wxASSERT_MSG( m_Pos <= (wxFileOffset)m_Size,
+ _T("wxZipInputStream: invalid current position") );
+
+ if ( m_Pos >= (wxFileOffset)m_Size )
+ {
+ m_lasterror = wxSTREAM_EOF;
+ return 0;
+ }
+
+ if (m_Pos + bufsize > m_Size)
+ bufsize = m_Size - m_Pos;
+