We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ea05cb commit 93cf72dCopy full SHA for 93cf72d
pkg/block/block_windows.go
@@ -115,7 +115,7 @@ func (i *Info) load() error {
115
}
116
for _, diskpartition := range win32DiskPartitionDescriptions {
117
// Finding disk partition linked to current disk drive
118
- if diskdrive.Index == diskpartition.DiskIndex {
+ if diskdrive.Index != nil && diskpartition.DiskIndex != nil && *diskdrive.Index == *diskpartition.DiskIndex {
119
disk.PhysicalBlockSizeBytes = *diskpartition.BlockSize
120
// Finding logical partition linked to current disk partition
121
for _, logicaldisk := range win32LogicalDiskDescriptions {
0 commit comments