mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-07-21 08:56:07 -04:00
171a521b91
hid_read() and hid_read_timeout() now return the number of bytes copied, instead of the number of bytes returned by GetOverlappekdResult() (which is the maximum report size for the device). This limits the return value to the requested length (buffer size), matching the behavior on other platforms.