X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d44bf31a6f0b4a261280e57842bbd53b5e26cd5..6f34921d9369a31de14e4b07e4824e2d701710f0:/src/common/fstream.cpp?ds=sidebyside diff --git a/src/common/fstream.cpp b/src/common/fstream.cpp index 4014d31031..3d0468bbb9 100644 --- a/src/common/fstream.cpp +++ b/src/common/fstream.cpp @@ -23,8 +23,6 @@ #pragma hdrstop #endif -#define BUF_TEMP_SIZE 10000 - // ---------------------------------------------------------------------------- // wxFileInputStream // ---------------------------------------------------------------------------- @@ -46,7 +44,10 @@ char wxFileInputStream::Peek() size_t wxFileInputStream::DoRead(void *buffer, size_t size) { - return wxFile::Read(buffer, size); + size_t ret = wxFile::Read(buffer, size); + m_eof = wxFile::Eof(); + + return ret; } off_t wxFileInputStream::DoSeekInput(off_t pos, wxSeekMode mode)