mirror of
https://github.com/Dasharo/edk2.git
synced 2026-06-13 10:16:24 -07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user