diff --git a/Legacy/BootPlatform/EfiLdr/PeLoader.c b/Legacy/BootPlatform/EfiLdr/PeLoader.c index 3d22008cd0ef..73db8f35a8f7 100644 --- a/Legacy/BootPlatform/EfiLdr/PeLoader.c +++ b/Legacy/BootPlatform/EfiLdr/PeLoader.c @@ -94,17 +94,16 @@ EfiLdrLoadImage ( Image->ImageEof = Image->ImageBase + Image->Info.ImageSize; Image->ImageAdjust = Image->ImageBase; - // // Load and relocate image // Status = UefiImageLoadImageForExecution ( - &ImageContext, - Image->ImageBase, - EFI_PAGES_TO_SIZE (Image->NoPages), - NULL, - 0 - ); + &ImageContext, + Image->ImageBase, + (UINT32)EFI_PAGES_TO_SIZE (Image->NoPages), + NULL, + 0 + ); if (EFI_ERROR (Status)) { return Status; }