\r
\r
/**\r
- Restore Partition Table to its alternate place\r
+ Restore Partition Table to its alternate place.\r
(Primary -> Backup or Backup -> Primary)\r
\r
@param[in] PartHeader Partition table header structure\r
\r
\r
/**\r
- Checks the CRC32 value in the table header\r
+ Checks the CRC32 value in the table header.\r
\r
@param MaxSize Max Size limit\r
@param Size The size of the table\r
\r
\r
/**\r
- Checks the CRC32 value in the table header\r
+ Checks the CRC32 value in the table header.\r
\r
@param MaxSize Max Size limit\r
@param Hdr Table to check\r
\r
\r
/**\r
- Updates the CRC32 value in the table header\r
+ Updates the CRC32 value in the table header.\r
\r
@param Size The size of the table\r
@param Hdr Table to update\r
\r
\r
/**\r
- Updates the CRC32 value in the table header\r
+ Updates the CRC32 value in the table header.\r
\r
@param Hdr Table to update\r
\r
\r
\r
/**\r
- Restore Partition Table to its alternate place\r
+ Restore Partition Table to its alternate place.\r
(Primary -> Backup or Backup -> Primary)\r
\r
@param[in] PartHeader Partition table header structure\r
\r
\r
/**\r
- Updates the CRC32 value in the table header\r
+ Updates the CRC32 value in the table header.\r
\r
@param Hdr Table to update\r
\r
\r
\r
/**\r
- Updates the CRC32 value in the table header\r
+ Updates the CRC32 value in the table header.\r
\r
@param Size The size of the table\r
@param Hdr Table to update\r
IN UINTN Size,\r
IN OUT EFI_TABLE_HEADER *Hdr\r
)\r
-\r
{\r
UINT32 Crc;\r
\r
\r
\r
/**\r
- Checks the CRC32 value in the table header\r
+ Checks the CRC32 value in the table header.\r
\r
@param MaxSize Max Size limit\r
@param Hdr Table to check\r
\r
\r
/**\r
- Checks the CRC32 value in the table header\r
+ Checks the CRC32 value in the table header.\r
\r
@param MaxSize Max Size limit\r
@param Size The size of the table\r
return FALSE;\r
}\r
\r
- if (MaxSize && Size > MaxSize) {\r
+ if ((MaxSize != 0) && (Size > MaxSize)) {\r
DEBUG ((EFI_D_ERROR, "CheckCrc32: Size > MaxSize\n"));\r
return FALSE;\r
}\r