Skip to content

Commit 3a80cc5

Browse files
Update Partitioning.cpp to skip partitions of 0x0B type that have 0 bytes
1 parent 26c8b0b commit 3a80cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Partitioning.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ std::vector<Partition> Partitioning::readPartitions(BlockDeviceType * blockDevic
162162
*/
163163
partition.size = (entry.lbaSize * 4096) >> 10;
164164

165-
if (entry.type == emptyPartitionType) {
165+
if (entry.type == emptyPartitionType && partition.size != 0) {
166166
// Skip empty partitions
167167
continue;
168168
}

0 commit comments

Comments
 (0)