VOID
FstubAdjustPartitionCount(
  IN  ULONG SectorSize,
  IN OUT PULONG PartitionCount
  );

Routine Description:

    Adjust the PartitionCount to be a valid EFI Maximum Partition Count.

    A valid value for the partition must be larger than MIN_PARTITOIN_COUNT,
    currently 128, and adjusted to take up as much of the remaining disk
    sector as is possible.

Arguments:

    SectorSize - The disk sector size.

    PartitionCount - The count to be adjusted.

Return Values:

    None.