diff --git a/MdeModulePkg/Library/SmmSmiHandlerProfileLib/SmmSmiHandlerProfileLib.c b/MdeModulePkg/Library/SmmSmiHandlerProfileLib/SmmSmiHandlerProfileLib.c index 0191cdebbf..2edc71be3e 100644 --- a/MdeModulePkg/Library/SmmSmiHandlerProfileLib/SmmSmiHandlerProfileLib.c +++ b/MdeModulePkg/Library/SmmSmiHandlerProfileLib/SmmSmiHandlerProfileLib.c @@ -99,7 +99,7 @@ SmmSmiHandlerProfileLibConstructor ( gSmst->SmmLocateProtocol ( &gSmiHandlerProfileGuid, NULL, - &mSmiHandlerProfile + (VOID **) &mSmiHandlerProfile ); return EFI_SUCCESS; }