CRUISE: Fix Possible Invalid Thumbnail Pointer Access.

This commit is contained in:
D G Turner 2018-07-31 09:22:26 +01:00
parent 388f16d3bc
commit 2a4fa26d52

View File

@ -61,6 +61,7 @@ WARN_UNUSED_RESULT bool readSavegameHeader(Common::InSaveFile *in, CruiseSavegam
while ((ch = (char)in->readByte()) != '\0') header.saveName += ch;
// Get the thumbnail
header.thumbnail = nullptr;
if (!Graphics::loadThumbnail(*in, header.thumbnail, skipThumbnail)) {
return false;
}