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
This commit is contained in:
mdkinney 2007-08-06 22:59:42 +00:00
parent 2118457ba5
commit cd2d846866
1 changed files with 1 additions and 1 deletions

View File

@ -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
) {