mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(TmrHiroAudio): sanity check.
This commit is contained in:
@@ -52,7 +52,7 @@ namespace GameRes.Formats.TmrHiro
|
|||||||
if (file.ReadByte() != 0)
|
if (file.ReadByte() != 0)
|
||||||
return null;
|
return null;
|
||||||
int length = ReadInt32 (file);
|
int length = ReadInt32 (file);
|
||||||
if (length != file.Length - 9)
|
if (-1 == length || length != file.Length - 9)
|
||||||
return null;
|
return null;
|
||||||
var format = new WaveFormat
|
var format = new WaveFormat
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user