diff options
Diffstat (limited to 'common/substream.h')
-rw-r--r-- | common/substream.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/substream.h b/common/substream.h index dc49ce9ecf..ecf11c54c9 100644 --- a/common/substream.h +++ b/common/substream.h @@ -27,6 +27,7 @@ #define COMMON_SUBSTREAM_H #include "common/stream.h" +#include "common/types.h" namespace Common { @@ -59,7 +60,7 @@ public: delete _parentStream; } - virtual bool eos() const { return _eos; } + virtual bool eos() const { return _eos | _parentStream->eos(); } virtual bool err() const { return _parentStream->err(); } virtual void clearErr() { _eos = false; _parentStream->clearErr(); } virtual uint32 read(void *dataPtr, uint32 dataSize); |