diff --git a/BurnOutSharp.Builders/LinearExecutable.cs b/BurnOutSharp.Builders/LinearExecutable.cs index 625063b3..ba3ab0d0 100644 --- a/BurnOutSharp.Builders/LinearExecutable.cs +++ b/BurnOutSharp.Builders/LinearExecutable.cs @@ -428,7 +428,7 @@ namespace BurnOutSharp.Builders #region Debug Information // Get the debug information offset - offset = informationBlock.NonResidentNamesTableOffset + stub.Header.NewExeHeaderAddr; + offset = informationBlock.DebugInformationOffset + stub.Header.NewExeHeaderAddr; if (offset > stub.Header.NewExeHeaderAddr && offset < data.Length) { // Seek to the debug information diff --git a/Test/Printer.cs b/Test/Printer.cs index 3673b0a6..c33e92a4 100644 --- a/Test/Printer.cs +++ b/Test/Printer.cs @@ -111,7 +111,7 @@ namespace Test var linearExecutable = LinearExecutable.Create(stream); if (linearExecutable == null) { - Console.WriteLine("Something went wrong parsing New Executable"); + Console.WriteLine("Something went wrong parsing Linear Executable"); Console.WriteLine(); return; }