Skip to content

Commit

Permalink
fix: fix inverse check in value comparison in error helper
Browse files Browse the repository at this point in the history
  • Loading branch information
f1zm0 committed Apr 24, 2023
1 parent d5fc72d commit e040b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ const (
)

func NT_SUCCESS(x uint32) bool {
return (x)&(1<<31) != 0 // error if severity bit (MSB) is 0x1
return (x)&(1<<31) == 0
}

0 comments on commit e040b8a

Please sign in to comment.