/* Check if the CRC field in the Partition table header is valid. */
BOOLEAN PartitionCheckGptHeaderCRC(IN EFI_PARTITION_TABLE_HEADER *PartHeader)
/* Check if the CRC field in the Partition table header is valid. */
BOOLEAN PartitionCheckGptHeaderCRC(IN EFI_PARTITION_TABLE_HEADER *PartHeader)
{
  UINT32  GptHdrCrc;
  UINT32  Crc;
  GptHdrCrc = PartHeader->Header.CRC32;
  PartHeader->Header.CRC32 = 0;
  Crc = CalculateCrc32 (PartHeader, PartHeader->Header.HeaderSize);
  PartHeader->Header.CRC32 = GptHdrCrc;
  return (GptHdrCrc == Crc);
}