- fix GPT partition size detection. Thanks blackb0x and cyan!

This commit is contained in:
Fledge68 2019-11-15 16:37:42 -06:00
parent 7f1b5dff10
commit 39f08cab9c
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 MiB

After

Width:  |  Height:  |  Size: 3.6 MiB

View File

@ -379,7 +379,7 @@ s8 PartitionHandle::CheckGPT(u8 PartNum)
bool bootable = (memcmp(part_entry->part_type_guid, TYPE_BIOS, 16) == 0);
AddPartition("GUID-Entry", le64(part_entry->part_first_lba), le64(part_entry->part_last_lba), bootable, PARTITION_TYPE_GPT, PartNum);
AddPartition("GUID-Entry", le64(part_entry->part_first_lba), le64(part_entry->part_last_lba)-le64(part_entry->part_first_lba), bootable, PARTITION_TYPE_GPT, PartNum);
}
next_lba++;
}