Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkg/block/block_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ func (i *Info) load() error {
}
for _, diskpartition := range win32DiskPartitionDescriptions {
// Finding disk partition linked to current disk drive
if diskdrive.Index == diskpartition.DiskIndex {
if diskdrive.Index == nil || diskpartition.DiskIndex == nil {
continue
}
if *diskdrive.Index == *diskpartition.DiskIndex {
disk.PhysicalBlockSizeBytes = *diskpartition.BlockSize
// Finding logical partition linked to current disk partition
for _, logicaldisk := range win32LogicalDiskDescriptions {
Expand Down