X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65045edde4a36217aebb214d841b658f28eb6ac7..236a9de39afa090fdee3cf91cb5364ceca69e3f8:/src/common/wfstream.cpp 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) {