Skip to content

Commit 6fcb0bb

Browse files
authored
win: hid_get_feature_report: Correct number of bytes_returned (libusb#286)
This originally tested/confirmed by @mcuee. Confirmed the expected behavior by Tim Roberts https://sourceforge.net/p/libusb/mailman/message/37303650/. Relates to: libusb#232.
1 parent e74189d commit 6fcb0bb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

windows/hid.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -881,11 +881,6 @@ int HID_API_EXPORT HID_API_CALL hid_get_feature_report(hid_device *dev, unsigned
881881
return -1;
882882
}
883883

884-
/* bytes_returned does not include the first byte which contains the
885-
report ID. The data buffer actually contains one more byte than
886-
bytes_returned. */
887-
bytes_returned++;
888-
889884
return bytes_returned;
890885
#endif
891886
}

0 commit comments

Comments
 (0)