From fe8aa971c4c66cc68ba6b64c61fae8149477bb5f Mon Sep 17 00:00:00 2001 From: Sylvain Bougnoux Date: Tue, 5 Oct 1999 07:34:27 +0000 Subject: [PATCH] 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 --- src/common/stream.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/stream.cpp b/src/common/stream.cpp index 7fdb36e3b8..162dcf19cb 100644 --- a/src/common/stream.cpp +++ b/src/common/stream.cpp @@ -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); } -- 2.45.2