- if (m_file->Eof())
- m_lasterror = wxStream_EOF;
- if (ret == wxInvalidOffset) {
- m_lasterror = wxStream_READ_ERR;
- ret = 0;
- }
+ m_lasterror = wxStream_NOERROR;
+ if (m_file->Eof())
+ m_lasterror = wxStream_EOF;
+ if (ret == wxInvalidOffset)
+ {
+ m_lasterror = wxStream_READ_ERR;
+ ret = 0;
+ }