Skip to content

Commit

Permalink
Change D.WORD type
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Apr 25, 2024
1 parent 0dde40f commit 6c16e45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usb_winusb.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var device struct {
mtx sync.Mutex
}

type C_DWORD C.ulong
type C_DWORD C.DWORD

func (e C_DWORD) Error() string {
return fmt.Sprintf("Windows Error: 0x%x", uint(e))
Expand All @@ -54,7 +54,7 @@ const (
ERROR_BAD_COMMAND C_DWORD = C.ERROR_BAD_COMMAND
)

func winusbError(err C.ulong) error {
func winusbError(err C.DWORD) error {
if err != C.ERROR_SUCCESS {
return C_DWORD(err)
}
Expand Down

0 comments on commit 6c16e45

Please sign in to comment.