From d990b35475a1ee9f21750e4ccd2dc88134e9eabf Mon Sep 17 00:00:00 2001 From: Mikhail Krichanov Date: Mon, 23 Oct 2023 16:39:47 +0300 Subject: [PATCH] EfiLdr: Fixed Uncrustify and VS2022 warnings. --- Legacy/BootPlatform/EfiLdr/PeLoader.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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; }