mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcMachoLib: Bugfix for using a wrong segment size.
This commit is contained in:
parent
a3241dbde4
commit
d4b592967f
@ -120,7 +120,7 @@ MachoGetLastAddress64 (
|
||||
Segment != NULL;
|
||||
Segment = MachoGetNextSegment64 (Context, Segment)
|
||||
) {
|
||||
Address = (Segment->VirtualAddress + Segment->Hdr.Size);
|
||||
Address = (Segment->VirtualAddress + Segment->Size);
|
||||
|
||||
if (Address > LastAddress) {
|
||||
LastAddress = Address;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user