fixed some IBinaryStream migration aftermath.

This commit is contained in:
morkt
2017-01-02 21:06:05 +04:00
parent 8ff76d59d6
commit 77dc85f5be
4 changed files with 4 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ namespace GameRes.Formats.Ivory
uint height = wh >> 16;
if (0 == width || width > 800 || 0 == height || height > 600)
return null;
stream.Position = 4;
if (!IsValidInput (stream.AsStream, width, height))
return null;
return new ImageMetaData { Width = width, Height = height, BPP = 24 };