diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-06 22:59:42 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-06 22:59:42 +0000 |
commit | cd2d8468660d1ad2d0ce85b93d7303af6e22a9bf (patch) | |
tree | 9d00144485083781690ecd104191d825c8f47d2a /MdeModulePkg/Universal/Disk/PartitionDxe | |
parent | 2118457ba5b1bd9215c5137cff113ff86d071559 (diff) | |
download | edk2-cd2d8468660d1ad2d0ce85b93d7303af6e22a9bf.zip edk2-cd2d8468660d1ad2d0ce85b93d7303af6e22a9bf.tar.gz edk2-cd2d8468660d1ad2d0ce85b93d7303af6e22a9bf.tar.bz2 |
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/Disk/PartitionDxe')
-rw-r--r-- | MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c b/MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c index 581007e..00f5ec0 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
) {
|