mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(ImgdFormat): check base.ReadMetaData return value.
This commit is contained in:
parent
5965c62f9b
commit
f1a39a1eee
@ -161,6 +161,8 @@ namespace GameRes.Formats.Hexenhaus
|
||||
ImageMetaData info;
|
||||
using (var png = new StreamRegion (stream, 0x10, true))
|
||||
info = base.ReadMetaData (png);
|
||||
if (null == info)
|
||||
return null;
|
||||
stream.Seek (-14, SeekOrigin.End);
|
||||
var cntr = new byte[12];
|
||||
stream.Read (cntr, 0, 12);
|
||||
|
Loading…
Reference in New Issue
Block a user