diff --git a/SabreTools.Wrappers/PortableExecutable.cs b/SabreTools.Wrappers/PortableExecutable.cs index f3d3580e..67a2aea7 100644 --- a/SabreTools.Wrappers/PortableExecutable.cs +++ b/SabreTools.Wrappers/PortableExecutable.cs @@ -244,7 +244,7 @@ namespace SabreTools.Wrappers } // Read the section into a local array - var sectionLength = (int)section.VirtualSize; + var sectionLength = (int)section.SizeOfRawData; var sectionData = ReadRangeFromSource(offset, sectionLength); if (sectionData.Length == 0) {