]> git.saurik.com Git - wxWidgets.git/commitdiff
after a seek, reset error if error==EOF
authorSylvain Bougnoux <bougnoux@imra-europe.com>
Tue, 5 Oct 1999 07:34:27 +0000 (07:34 +0000)
committerSylvain Bougnoux <bougnoux@imra-europe.com>
Tue, 5 Oct 1999 07:34:27 +0000 (07:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/stream.cpp

index 7fdb36e3b84eed5ef5c717851b1f09ea3cf49f46..162dcf19cb10e824c02412a205302f2b96e2cafe 100644 (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);
 }