diff options
Diffstat (limited to 'Userland/Libraries/LibPartition/MBRPartitionTable.cpp')
-rw-r--r-- | Userland/Libraries/LibPartition/MBRPartitionTable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibPartition/MBRPartitionTable.cpp b/Userland/Libraries/LibPartition/MBRPartitionTable.cpp index 2504ee1457..9ba3a27147 100644 --- a/Userland/Libraries/LibPartition/MBRPartitionTable.cpp +++ b/Userland/Libraries/LibPartition/MBRPartitionTable.cpp @@ -82,7 +82,7 @@ MBRPartitionTable::MBRPartitionTable(NonnullRefPtr<Core::File> device_file, u32 if (entry.offset == 0x00) { continue; } - MUST(m_partitions.try_empend(entry.offset, (entry.offset + entry.length), entry.type)); + MUST(m_partitions.try_empend(entry.offset, (entry.offset + entry.length) - 1, entry.type)); } m_valid = true; } @@ -106,7 +106,7 @@ MBRPartitionTable::MBRPartitionTable(NonnullRefPtr<Core::File> device_file) if (entry.offset == 0x00) { continue; } - MUST(m_partitions.try_empend(entry.offset, (entry.offset + entry.length), entry.type)); + MUST(m_partitions.try_empend(entry.offset, (entry.offset + entry.length) - 1, entry.type)); } m_valid = true; } |