Skip to content

Commit

Permalink
Another Message Archive recognition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SciresM committed Mar 15, 2017
1 parent 4cea49c commit 6fb6853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FEAT/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ private bool TryExtractFireEmblemHeroesMessageArchive(string outname, byte[] arc
var name_ofs = BitConverter.ToUInt64(archive, (int)(0x28 + i * 0x10)) + 0x20;
var str_ofs = BitConverter.ToUInt64(archive, (int)(0x30 + i * 0x10)) + 0x20;

if ((name_ofs < 0x28 + num_strings * 0x10 || name_ofs > string_table_end) && name_ofs != 0x20)
if ((name_ofs < 0x28 + num_strings * 0x10 || name_ofs > string_table_end + 0x20) && name_ofs != 0x20)
return false;

if ((str_ofs < 0x28 + num_strings * 0x10 || str_ofs > string_table_end) && str_ofs != 0x20)
if ((str_ofs < 0x28 + num_strings * 0x10 || str_ofs > string_table_end + 0x20) && str_ofs != 0x20)
return false;


Expand Down

0 comments on commit 6fb6853

Please sign in to comment.