mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-07-19 21:43:36 -04: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:
+1
-1
@@ -948,7 +948,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)
|
||||
|
||||
Reference in New Issue
Block a user