ZVISION: Fix dereference after null check (CID 1257091)

This commit is contained in:
Marisa-Chan 2014-12-19 17:11:26 +06:00
parent 617623e9bf
commit 169bed1e5e

View File

@ -73,6 +73,9 @@ RawChunkStream::RawChunk RawChunkStream::readNextChunk(Common::SeekableReadStrea
tmp.size = 0;
tmp.data = NULL;
if (!stream)
return tmp;
if (stream && (stream->size() == 0 || stream->eos()))
return tmp;