Skip to content

Commit

Permalink
fix(windows): GetMbr
Browse files Browse the repository at this point in the history
  • Loading branch information
jclab-joseph committed Jul 14, 2023
1 parent 2f820a9 commit 5af7eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plat_win/storage_win_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type PARTITION_INFORMATION_EX struct {
}

func (p *PARTITION_INFORMATION_EX) GetMbr() *PARTITION_INFORMATION_MBR {
if p.PartitionStyle == PartitionStyleGpt {
if p.PartitionStyle == PartitionStyleMbr {
return (*PARTITION_INFORMATION_MBR)(unsafe.Pointer(&p.PartitionInfo[0]))
}
return nil
Expand Down

0 comments on commit 5af7eca

Please sign in to comment.