mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-23 09:47:44 +02:00
ImageTool/PeScan: Drop redundant size clamping
This commit is contained in:
parent
8978439c82
commit
daca49e23f
@ -298,7 +298,7 @@ ScanPeGetSegmentInfo (
|
||||
memmove (
|
||||
ImageSegment->Data,
|
||||
ImageBuffer + Section->VirtualAddress,
|
||||
MIN (Section->VirtualSize, Section->SizeOfRawData)
|
||||
Section->VirtualSize
|
||||
);
|
||||
|
||||
ImageSegment->DataSize = Size;
|
||||
@ -337,7 +337,7 @@ ScanPeGetSegmentInfo (
|
||||
memmove (
|
||||
HiiInfo->Data,
|
||||
ImageBuffer + Section->VirtualAddress,
|
||||
MIN (Section->VirtualSize, Section->SizeOfRawData)
|
||||
Section->VirtualSize
|
||||
);
|
||||
|
||||
HiiInfo->DataSize = Size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user