KYRA: Fix Valgrind Uninitialized Memory Read at end of VQA Playback.
svn-id: r55619
This commit is contained in:
parent
f050e2d66f
commit
450dac35c7
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ uint32 VQAMovie::readTag() {
|
|||
|
||||
uint32 tag = _file->readUint32BE();
|
||||
|
||||
if (_file->eos())
|
||||
return 0;
|
||||
|
||||
if (!(tag & 0xFF000000)) {
|
||||
tag = (tag << 8) | _file->readByte();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue