From c758bae342d10ba537a268ce69eb9c41e8d9b334 Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 20 Mar 2019 13:36:04 +0400 Subject: [PATCH] (SYG): ignore EOF. --- ArcFormats/Risa/ImageSYG.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArcFormats/Risa/ImageSYG.cs b/ArcFormats/Risa/ImageSYG.cs index ac65de79..c1af6d8f 100644 --- a/ArcFormats/Risa/ImageSYG.cs +++ b/ArcFormats/Risa/ImageSYG.cs @@ -61,8 +61,7 @@ namespace GameRes.Formats.WestVision int pixel_count = (int)meta.Width * (int)meta.Height; var pixels = new byte[pixel_count * 3]; stream.Position = 0x20; - if (pixels.Length != stream.Read (pixels, 0, pixels.Length)) - throw new EndOfStreamException ("Unexpected end of file"); + stream.Read (pixels, 0, pixels.Length); var format = PixelFormats.Bgr24; if (meta.AlphaOffset != 0) {