From c87fa98d166887ba08d423ad3fe6c5ab47982d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20Ha=CC=88user?= <8659494+mhaeuser@users.noreply.github.com> Date: Sat, 15 Apr 2023 19:14:13 +0200 Subject: [PATCH] StandaloneMmPkg/StandaloneMmCore: Fix build errors --- StandaloneMmPkg/Core/Dispatcher.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/StandaloneMmPkg/Core/Dispatcher.c b/StandaloneMmPkg/Core/Dispatcher.c index e9bbfba292..75f2e9a06c 100644 --- a/StandaloneMmPkg/Core/Dispatcher.c +++ b/StandaloneMmPkg/Core/Dispatcher.c @@ -292,7 +292,7 @@ MmLoadImage ( return Status; } - ImageSize = UefiImageGetImageSize (&ImageContext, &ImageSize); + ImageSize = UefiImageGetImageSize (&ImageContext); DstBufferPages = EFI_SIZE_TO_PAGES (ImageSize); DstBufferSize = EFI_PAGES_TO_SIZE (DstBufferPages); ImageAlignment = UefiImageGetSegmentAlignment (&ImageContext); @@ -305,7 +305,7 @@ MmLoadImage ( // // Load the image to our new buffer // - Status = UefiImageLoadImageForExecution (&ImageContext, (VOID *) (UINTN) DstBuffer, DstBufferSize, NULL, 0); + Status = UefiImageLoadImageForExecution (&ImageContext, DstBuffer, DstBufferSize, NULL, 0); if (EFI_ERROR (Status)) { FreeAlignedPages (DstBuffer, DstBufferPages); return Status; @@ -369,7 +369,7 @@ MmLoadImage ( DEBUG (( DEBUG_INFO | DEBUG_LOAD, "Loading MM driver at 0x%11p EntryPoint=0x%11p ", - (VOID *)(UINTN)ImageBase, + DstBuffer, FUNCTION_ENTRY_POINT (UefiImageLoaderGetImageEntryPoint (&ImageContext)) ));