mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-09 02:16:55 +00:00
Overlay deals with real data only
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user