From cd2d8468660d1ad2d0ce85b93d7303af6e22a9bf Mon Sep 17 00:00:00 2001 From: mdkinney Date: Mon, 6 Aug 2007 22:59:42 +0000 Subject: [PATCH] Fix bug in GPT check that was introduced when a CompareMem() call was changed to a '==' operator. It should be a '!=' operator. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3557 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c b/MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c index 581007e92a..00f5ec06e0 100644 --- a/MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c +++ b/MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c @@ -366,7 +366,7 @@ PartitionValidGptTable ( return FALSE; } - if ((PartHdr->Header.Signature == EFI_PTAB_HEADER_ID) || + if ((PartHdr->Header.Signature != EFI_PTAB_HEADER_ID) || !PartitionCheckCrc (BlockSize, &PartHdr->Header) || PartHdr->MyLBA != Lba ) { -- 2.39.2