Skip to content

Commit

Permalink
win: hid_get_feature_report: Correct number of bytes_returned (#286)
Browse files Browse the repository at this point in the history
This originally tested/confirmed by @mcuee.
Confirmed the expected behavior by Tim Roberts https://sourceforge.net/p/libusb/mailman/message/37303650/.
Relates to: #232.
  • Loading branch information
Youw authored Jun 19, 2021
1 parent e74189d commit 6fcb0bb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions windows/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,11 +881,6 @@ int HID_API_EXPORT HID_API_CALL hid_get_feature_report(hid_device *dev, unsigned
return -1;
}

/* bytes_returned does not include the first byte which contains the
report ID. The data buffer actually contains one more byte than
bytes_returned. */
bytes_returned++;

return bytes_returned;
#endif
}
Expand Down

0 comments on commit 6fcb0bb

Please sign in to comment.