mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-28 04:41:53 +01:00
- fix GPT partition size detection. Thanks blackb0x and cyan!
This commit is contained in:
parent
7f1b5dff10
commit
39f08cab9c
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 3.6 MiB After Width: | Height: | Size: 3.6 MiB |
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user