Fix bug in GPT check that was introduced when a CompareMem() call was changed to...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 6 Aug 2007 22:59:42 +0000 (22:59 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 6 Aug 2007 22:59:42 +0000 (22:59 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3557 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c

index 581007e..00f5ec0 100644 (file)
@@ -366,7 +366,7 @@ PartitionValidGptTable (
     return FALSE;\r
   }\r
 \r
     return FALSE;\r
   }\r
 \r
-  if ((PartHdr->Header.Signature == EFI_PTAB_HEADER_ID) ||\r
+  if ((PartHdr->Header.Signature != EFI_PTAB_HEADER_ID) ||\r
       !PartitionCheckCrc (BlockSize, &PartHdr->Header) ||\r
       PartHdr->MyLBA != Lba\r
       ) {\r
       !PartitionCheckCrc (BlockSize, &PartHdr->Header) ||\r
       PartHdr->MyLBA != Lba\r
       ) {\r