VOID
FstubFixupEfiPartition(
  IN  PPARTITION_DESCRIPTOR Entry,
  IN  ULONGLONG MaxSector
  );

Routine Description:

    Protective GPT partition entries can have invalid sizes. The EFI
    standard explicitly allows this. For these partitions, fixup
    the length so it doesn't go past the end of the disk.

Arguments:

    Entry - Supplies the partition entry to modify.

    MaxSector - Supplies the maximum valid sector.

Return Value:

    NTSTATUS code