mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-31 07:56:26 +00:00
Fix up a merge error in 467878f3e0
.
In the branch I wrote the code on, "size" was a thing. On this branch it isn't. Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
2de084689f
commit
af13b3efc9
8
shim.c
8
shim.c
@ -1293,10 +1293,12 @@ static EFI_STATUS handle_image (void *data, unsigned int datasize,
|
||||
}
|
||||
|
||||
if (Section->SizeOfRawData > 0)
|
||||
CopyMem(base, data + Section->PointerToRawData, size);
|
||||
CopyMem(base, data + Section->PointerToRawData,
|
||||
Section->SizeOfRawData);
|
||||
|
||||
if (size < Section->Misc.VirtualSize)
|
||||
ZeroMem(base + size, Section->Misc.VirtualSize - size);
|
||||
if (Section->SizeOfRawData < Section->Misc.VirtualSize)
|
||||
ZeroMem(base + Section->SizeOfRawData,
|
||||
Section->Misc.VirtualSize - Section->SizeOfRawData);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user