Skip to content

Commit

Permalink
Fix return value in hid_write_control
Browse files Browse the repository at this point in the history
This won't really fix anything, but might spare us some future headaches.
  • Loading branch information
Megamouse authored and Nekotekina committed Nov 17, 2020
1 parent 9220f5e commit 8961cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ int HID_API_EXPORT HID_API_CALL hid_write_control(hid_device *dev, const unsigne
bytes_written = -1;
}

return length;
return bytes_written;
}

int HID_API_EXPORT HID_API_CALL hid_read_timeout(hid_device *dev, unsigned char *data, size_t length, int milliseconds)
Expand Down

0 comments on commit 8961cf8

Please sign in to comment.