Overlay deals with real data only

This commit is contained in:
Matt Nadareski
2025-08-28 22:41:49 -04:00
parent e0ec2a521f
commit 56b71cf7fe

View File

@@ -245,11 +245,7 @@ namespace SabreTools.Serialization.Wrappers
continue;
// Get the real section size
int sectionSize;
if (section.SizeOfRawData < section.VirtualSize)
sectionSize = (int)section.VirtualSize;
else
sectionSize = (int)section.SizeOfRawData;
int sectionSize = (int)section.SizeOfRawData;
// Compare and set the end of section data
if (sectionAddress + sectionSize > endOfSectionData)
@@ -316,11 +312,7 @@ namespace SabreTools.Serialization.Wrappers
continue;
// Get the real section size
int sectionSize;
if (section.SizeOfRawData < section.VirtualSize)
sectionSize = (int)section.VirtualSize;
else
sectionSize = (int)section.SizeOfRawData;
int sectionSize = (int)section.SizeOfRawData;
// Compare and set the end of section data
if (sectionAddress + sectionSize > endOfSectionData)