after a seek, reset error if error==EOF

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Sylvain Bougnoux 1999-10-05 07:34:27 +00:00
parent a20cd16ca0
commit fe8aa971c4

View File

@ -593,6 +593,10 @@ wxInputStream& wxInputStream::Read(wxOutputStream& stream_out)
off_t wxInputStream::SeekI(off_t pos, wxSeekMode mode)
{
//should be check and improve, just to remove a slight bug !
// I don't know whether it should be put as well in wxFileInputStream::OnSysSeek ?
if (m_lasterror==wxSTREAM_EOF) m_lasterror=wxSTREAM_NOERROR;
return OnSysSeek(pos, mode);
}