diff --git a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c index 579f45e958..ffe3fb72ec 100644 --- a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c +++ b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c @@ -241,7 +241,7 @@ DebugPortSupported ( if (Status == EFI_SUCCESS && (Dp2->Type != MESSAGING_DEVICE_PATH || Dp2->SubType != MSG_VENDOR_DP || - *((UINT16 *) Dp2->Length) != sizeof (VENDOR_DEVICE_PATH))) { + *((UINT16 *) Dp2->Length) != sizeof (DEBUGPORT_DEVICE_PATH))) { Status = EFI_UNSUPPORTED; }