mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 03:09:15 +01:00
Fix GPT partition size detection
This commit is contained in:
parent
b3e4b2401d
commit
9eb5deeee6
@ -375,7 +375,7 @@ int PartitionHandle::CheckGPT(u8 PartNum)
|
|||||||
|
|
||||||
bool bootable = (memcmp(part_entry->part_type_guid, TYPE_BIOS, 16) == 0);
|
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, i, GPT);
|
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, i, GPT);
|
||||||
}
|
}
|
||||||
|
|
||||||
next_lba++;
|
next_lba++;
|
||||||
|
Loading…
Reference in New Issue
Block a user