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/.
This commit is contained in:
JoergAtGithub 2021-06-19 05:09:47 +02:00 committed by GitHub
parent 42fa21fff1
commit e74189d867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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