kernel: Start counting partition numbers at 1
All checks were successful
continuous-integration/drone/push Build is passing

This makes more sense for the end user.
This commit is contained in:
apio 2023-06-17 19:50:58 +02:00
parent 8ace83f2ae
commit 266fa4a0d4
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ namespace GPT
u64 partition_table_start = header.partition_table_lba * GPT_SECTOR_SIZE;
u32 partition_index = 0;
u32 partition_index = 1;
auto* table = TRY(make_array<PartitionEntry>(header.num_partitions));
auto guard = make_scope_guard([table] { delete[] table; });

View File

@ -59,7 +59,7 @@ namespace MBR
if (hdr.signature[0] != MBR_SIGNATURE_1 || hdr.signature[1] != MBR_SIGNATURE_2) return false;
u32 partition_index = 0;
u32 partition_index = 1;
for (int i = 0; i < 4; i++)
{