mirror of https://github.com/acidanthera/audk.git
ArmPkg/BdsLib: Fixed parameters passed to AllocatePages()
Typo issue ... git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12176 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1c978f48e4
commit
1c6f402c24
|
@ -581,7 +581,7 @@ BdsFirmwareVolumeLoadImage (
|
|||
Status = gBS->AllocatePages (Type, EfiBootServicesCode, EFI_SIZE_TO_PAGES(*ImageSize), Image);
|
||||
// Try to allocate in any pages if failed to allocate memory at the defined location
|
||||
if ((Status == EFI_OUT_OF_RESOURCES) && (Type != AllocateAnyPages)) {
|
||||
Status = gBS->AllocatePages (AllocateAnyPages, EfiBootServicesCode, EFI_SIZE_TO_PAGES(Size), Image);
|
||||
Status = gBS->AllocatePages (AllocateAnyPages, EfiBootServicesCode, EFI_SIZE_TO_PAGES(*ImageSize), Image);
|
||||
}
|
||||
if (!EFI_ERROR(Status)) {
|
||||
CopyMem ((VOID*)(UINTN)(*Image), ImageBuffer, *ImageSize);
|
||||
|
@ -603,7 +603,7 @@ BdsFirmwareVolumeLoadImage (
|
|||
Status = gBS->AllocatePages (Type, EfiBootServicesCode, EFI_SIZE_TO_PAGES(*ImageSize), Image);
|
||||
// Try to allocate in any pages if failed to allocate memory at the defined location
|
||||
if ((Status == EFI_OUT_OF_RESOURCES) && (Type != AllocateAnyPages)) {
|
||||
Status = gBS->AllocatePages (AllocateAnyPages, EfiBootServicesCode, EFI_SIZE_TO_PAGES(Size), Image);
|
||||
Status = gBS->AllocatePages (AllocateAnyPages, EfiBootServicesCode, EFI_SIZE_TO_PAGES(*ImageSize), Image);
|
||||
}
|
||||
if (!EFI_ERROR(Status)) {
|
||||
Status = FwVol->ReadFile (
|
||||
|
|
Loading…
Reference in New Issue