mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-29 23:28:21 +08:00
fixed index size check.
This commit is contained in:
@@ -64,7 +64,7 @@ namespace GameRes.Formats.Pajamas
|
||||
int name_offset = 0x10;
|
||||
int index_offset = name_offset + name_length*count;
|
||||
int base_offset = index_offset + 8*count;
|
||||
if ((uint)base_offset != file.View.Reserve (0, (uint)base_offset))
|
||||
if ((uint)base_offset > file.View.Reserve (0, (uint)base_offset))
|
||||
return null;
|
||||
var dir = new List<Entry> (count);
|
||||
for (int i = 0; i < count; ++i)
|
||||
|
||||
Reference in New Issue
Block a user