Skip to content

Commit

Permalink
EfiLdr: Fixed Uncrustify and VS2022 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailKrichanov committed Oct 23, 2023
1 parent ee72ccd commit d990b35
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Legacy/BootPlatform/EfiLdr/PeLoader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d990b35

Please sign in to comment.