From 29d8cf6c6253ca05db0b977e7b34de764bd981af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20H=C3=A4user?= Date: Tue, 27 Feb 2018 23:28:19 +0100 Subject: MinPlatformPkg/DxePlatformBootManagerLib: Add missing typecasts. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser Reviewed-by: Jiewen Yao --- .../Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c index 79ff8b0b6c..8fd31df876 100644 --- a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c +++ b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c @@ -581,7 +581,7 @@ UpdateGraphicConOut ( // GopDevicePath = EfiBootManagerGetGopDevicePath (GraphicsControllerHandle); if (GopDevicePath != NULL) { - GetEfiGlobalVariable2 (L"ConOut", &ConOutDevicePath, NULL); + GetEfiGlobalVariable2 (L"ConOut", (VOID **)&ConOutDevicePath, NULL); UpdatedConOutDevicePath = UpdateGopDevicePath (ConOutDevicePath, GopDevicePath); if (ConOutDevicePath != NULL) { FreePool (ConOutDevicePath); @@ -681,7 +681,7 @@ ConnectTrustedConsole ( for (Index = 0; Index < sizeof (ConsoleVar) / sizeof (ConsoleVar[0]); Index++) { - GetEfiGlobalVariable2 (ConsoleVar[Index], &Consoles, NULL); + GetEfiGlobalVariable2 (ConsoleVar[Index], (VOID **)&Consoles, NULL); TempDevicePath = Consoles; do { @@ -1130,8 +1130,8 @@ PlatformBootManagerBeforeConsole ( gBootMode == BOOT_WITH_FULL_CONFIGURATION_PLUS_DIAGNOSTICS || gBootMode == BOOT_IN_RECOVERY_MODE) { - GetEfiGlobalVariable2 (L"ConOut", &VarConOut, NULL); if (VarConOut != NULL) { FreePool (VarConOut); } - GetEfiGlobalVariable2 (L"ConIn", &VarConIn, NULL); if (VarConIn != NULL) { FreePool (VarConIn); } + GetEfiGlobalVariable2 (L"ConOut", (VOID **)&VarConOut, NULL); if (VarConOut != NULL) { FreePool (VarConOut); } + GetEfiGlobalVariable2 (L"ConIn", (VOID **)&VarConIn, NULL); if (VarConIn != NULL) { FreePool (VarConIn); } // // Only fill ConIn/ConOut when ConIn/ConOut is empty because we may drop to Full Configuration boot mode in non-first boot -- cgit v1.2.3