diff --git a/ArcFormats/Tmr-Hiro/AudioTmr.cs b/ArcFormats/Tmr-Hiro/AudioTmr.cs index f5e252d8..a7bcf13e 100644 --- a/ArcFormats/Tmr-Hiro/AudioTmr.cs +++ b/ArcFormats/Tmr-Hiro/AudioTmr.cs @@ -52,7 +52,7 @@ namespace GameRes.Formats.TmrHiro if (file.ReadByte() != 0) return null; int length = ReadInt32 (file); - if (length != file.Length - 9) + if (-1 == length || length != file.Length - 9) return null; var format = new WaveFormat {