diff --git a/common/memstream.h b/common/memstream.h index f4f0fdc1a4b..9452e4f24ba 100644 --- a/common/memstream.h +++ b/common/memstream.h @@ -33,7 +33,7 @@ namespace Common { * Simple memory based 'stream', which implements the ReadStream interface for * a plain memory block. */ -class MemoryReadStream : public SeekableReadStream { +class MemoryReadStream : virtual public SeekableReadStream { private: const byte * const _ptrOrig; const byte *_ptr;