diff --git a/DiscImageChef.Partitions/Human68k.cs b/DiscImageChef.Partitions/Human68k.cs index 1713357d..1692b993 100644 --- a/DiscImageChef.Partitions/Human68k.cs +++ b/DiscImageChef.Partitions/Human68k.cs @@ -78,6 +78,10 @@ namespace DiscImageChef.PartPlugins } X68kTable table = BigEndianMarshal.ByteArrayToStructureBigEndian(sector); + + if(table.magic != X68kMagic) + return false; + for(int i = 0; i < table.entries.Length; i++) table.entries[i] = BigEndianMarshal.SwapStructureMembersEndian(table.entries[i]); @@ -86,9 +90,6 @@ namespace DiscImageChef.PartPlugins DicConsole.DebugWriteLine("Human68k plugin", "table.size2 = {0:X4}", table.size2); DicConsole.DebugWriteLine("Human68k plugin", "table.unknown = {0:X4}", table.unknown); - if(table.magic != X68kMagic) - return false; - ulong counter = 0; foreach(X68kEntry entry in table.entries)