diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c index dbb89932e7..1ccb9c7787 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c @@ -319,7 +319,7 @@ SmmReadyToBootHandler ( Status = SmmLocateProtocol ( &gEfiSmmSxDispatch2ProtocolGuid, NULL, - &SxDispatch + (VOID **)&SxDispatch ); if (!EFI_ERROR (Status)) { //