From: mdkinney Date: Mon, 6 Aug 2007 22:59:42 +0000 (+0000) Subject: Fix bug in GPT check that was introduced when a CompareMem() call was changed to... X-Git-Tag: edk2-stable201903~22404 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=cd2d8468660d1ad2d0ce85b93d7303af6e22a9bf 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 --- 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 ) {