From 913f7802defb9d71c30594abffd823a3f5ec72b7 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 11 Jan 2023 13:55:00 -0800 Subject: [PATCH] Fix LE/LX debug parsing --- BurnOutSharp.Builders/LinearExecutable.cs | 2 +- Test/Printer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }