mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
(TmrHiroAudio): sanity check.
This commit is contained in:
parent
5e61afc9f4
commit
40c7cbfe6a
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user