Changes to cope with parent streams which return an error instead of eof at the
end of the file. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -136,6 +136,7 @@ size_t wxZlibInputStream::OnSysRead(void *buffer, size_t size)
|
||||
// any additional data can be read from the underlying stream (the crc
|
||||
// in a gzip for example)
|
||||
if (m_inflate->avail_in) {
|
||||
m_parent_i_stream->Reset();
|
||||
m_parent_i_stream->Ungetch(m_inflate->next_in, m_inflate->avail_in);
|
||||
m_inflate->avail_in = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user