From 3a63755d96acd0e8321e8c6bc9760525ec67724c Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 5 Dec 2022 10:06:37 -0800 Subject: [PATCH] Simplify section printing --- BurnOutSharp.Wrappers/PortableExecutable.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BurnOutSharp.Wrappers/PortableExecutable.cs b/BurnOutSharp.Wrappers/PortableExecutable.cs index ed6be896..13f96332 100644 --- a/BurnOutSharp.Wrappers/PortableExecutable.cs +++ b/BurnOutSharp.Wrappers/PortableExecutable.cs @@ -768,8 +768,8 @@ namespace BurnOutSharp.Wrappers { // TODO: Handle long section names with leading `/` string sectionName = Encoding.UTF8.GetString(section.Name); - int sectionAddr = (int)section.PointerToRawData; - int sectionEnd = sectionAddr + (int)section.VirtualSize; + uint sectionAddr = section.PointerToRawData; + uint sectionEnd = sectionAddr + section.VirtualSize; Console.WriteLine($"{sectionName}: {sectionAddr} -> {sectionEnd}"); } }