Skip to content

Commit e74189d

Browse files
win: hid_get_input_report: Correct number of bytes_returned (#232)
Fixes: #229 This originally tested/confirmed by @JoergAtGithub and @mcuee. And confirmed the expected behavior by Tim Roberts https://sourceforge.net/p/libusb/mailman/message/37303650/.
1 parent 42fa21f commit e74189d

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
@@ -930,11 +930,6 @@ int HID_API_EXPORT HID_API_CALL hid_get_input_report(hid_device *dev, unsigned c
930930
return -1;
931931
}
932932

933-
/* bytes_returned does not include the first byte which contains the
934-
report ID. The data buffer actually contains one more byte than
935-
bytes_returned. */
936-
bytes_returned++;
937-
938933
return bytes_returned;
939934
#endif
940935
}

0 commit comments

Comments
 (0)