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