mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +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…
x
Reference in New Issue
Block a user