X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6319afe332dd1b386cf05902af86d3b5df6692f7..f7a11f8c8e665992e2d1956b2b89d2f562c92669:/src/common/stream.cpp diff --git a/src/common/stream.cpp b/src/common/stream.cpp index 5c7ba37d3f..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); } @@ -677,7 +681,7 @@ size_t wxCountingOutputStream::GetSize() const return m_lastcount; } -size_t wxCountingOutputStream::OnSysWrite(const void *buffer, size_t size) +size_t wxCountingOutputStream::OnSysWrite(const void *WXUNUSED(buffer), size_t size) { m_currentPos += size; if (m_currentPos > m_lastcount) m_lastcount = m_currentPos;