mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-06 18:00:44 +00:00
WINTERMUTE: Make sure the TGA-decoder returns false on error
This commit is contained in:
parent
c59507a6e9
commit
e3a7921dff
@ -50,7 +50,7 @@ bool TGA::loadStream(Common::SeekableReadStream &tga) {
|
||||
success = readHeader(tga, imageType, pixelDepth);
|
||||
success = readData (tga, imageType, pixelDepth);
|
||||
|
||||
if (tga.err()) {
|
||||
if (tga.err() || !success) {
|
||||
warning("Failed reading TGA-file");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user