mirror of
https://github.com/RPCS3/hidapi.git
synced 2024-11-23 10:09:43 +00:00
Fix return value in hid_write_control
This won't really fix anything, but might spare us some future headaches.
This commit is contained in:
parent
9220f5e77c
commit
8961cf86eb
@ -678,7 +678,7 @@ int HID_API_EXPORT HID_API_CALL hid_write_control(hid_device *dev, const unsigne
|
||||
bytes_written = -1;
|
||||
}
|
||||
|
||||
return length;
|
||||
return bytes_written;
|
||||
}
|
||||
|
||||
int HID_API_EXPORT HID_API_CALL hid_read_timeout(hid_device *dev, unsigned char *data, size_t length, int milliseconds)
|
||||
|
Loading…
Reference in New Issue
Block a user