StandaloneMmPkg: StandaloneMmIplPei: MM Communicate v3 header check fix

The current check for MM communicate v3 header has a logic error when
using `CompareGuid`. This change fixed the issue.

Signed-off-by: Kun Qin <kun.qin@microsoft.com>
This commit is contained in:
Kun Qin
2026-01-14 01:37:16 -08:00
committed by mergify[bot]
parent f0eade5984
commit 11d04a2975
@@ -189,7 +189,7 @@ Communicate3 (
//
// Check if the HeaderGuid is valid
//
if (CompareGuid (&CommunicateHeader->HeaderGuid, &gEfiMmCommunicateHeaderV3Guid)) {
if (CompareGuid (&CommunicateHeader->HeaderGuid, &gEfiMmCommunicateHeaderV3Guid) == FALSE) {
DEBUG ((DEBUG_ERROR, "HeaderGuid is not valid!\n"));
return EFI_INVALID_PARAMETER;
}