summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-06 22:59:42 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-06 22:59:42 +0000
commitcd2d8468660d1ad2d0ce85b93d7303af6e22a9bf (patch)
tree9d00144485083781690ecd104191d825c8f47d2a /MdeModulePkg/Universal
parent2118457ba5b1bd9215c5137cff113ff86d071559 (diff)
downloadedk2-platforms-cd2d8468660d1ad2d0ce85b93d7303af6e22a9bf.tar.xz
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
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c2
1 files changed, 1 insertions, 1 deletions
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
) {