From c369efdac655bb8557b89233bbf87c30d5601b1f Mon Sep 17 00:00:00 2001 From: Savva Mitrofanov Date: Wed, 18 Jan 2023 15:00:18 +0600 Subject: [PATCH] MdeModulePkg/DebugSupportDxe: Corrects MSVC build Fixes 6c974ab21e212c1867c871f989f6f1df5786e99e by supressing type cast warning for MSVC Signed-off-by: Savva Mitrofanov --- MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupport.c b/MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupport.c index aa8f6c5de1..129eee6b2c 100644 --- a/MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupport.c +++ b/MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupport.c @@ -268,10 +268,10 @@ InterruptDistrubutionHub ( { if (IdtEntryTable[ExceptionType].RegisteredCallback != NULL) { if (ExceptionType != SYSTEM_TIMER_VECTOR) { - ((EFI_EXCEPTION_CALLBACK)(IdtEntryTable[ExceptionType].RegisteredCallback))(ExceptionType, (EFI_SYSTEM_CONTEXT)ContextRecord); + ((EFI_EXCEPTION_CALLBACK)(IdtEntryTable[ExceptionType].RegisteredCallback))(ExceptionType, *(EFI_SYSTEM_CONTEXT *) &ContextRecord); } else { OrigVector = IdtEntryTable[ExceptionType].OrigVector; - ((EFI_PERIODIC_CALLBACK)(IdtEntryTable[ExceptionType].RegisteredCallback))((EFI_SYSTEM_CONTEXT)ContextRecord); + ((EFI_PERIODIC_CALLBACK)(IdtEntryTable[ExceptionType].RegisteredCallback))(*(EFI_SYSTEM_CONTEXT *) &ContextRecord); } } }