diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index b43ddb3fba..3e1970a3ff 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -73,6 +73,7 @@ size_t wxFileInputStream::OnSysRead(void *buffer, size_t size) ret = m_file->Read(buffer, size); + m_lasterror = wxStream_NOERROR; if (m_file->Eof()) m_lasterror = wxStream_EOF; if (ret == wxInvalidOffset) {