+ if (m_lasterror==wxSTREAM_EOF)
+ m_lasterror=wxSTREAM_NOERROR;
+
+ // A call to SeekI() will automatically invalidate any previous call
+ // to Ungetch(), otherwise it would be possible to SeeI() to one
+ // one position, unread some bytes there, SeekI() to another position
+ // and the data would be corrupted.
+ if (m_wback) {
+ free(m_wback);
+ m_wback = (char*) NULL;
+ m_wbacksize = 0;
+ m_wbackcur = 0;
+ }