mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed upstream bug: FD 0 is a valid file descriptor
https://github.com/libusb/hidapi/issues/199
This commit is contained in:
parent
549010f2a0
commit
65c9f1d2cc
@ -719,7 +719,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path, int bExclusive)
|
|||||||
dev->device_handle = open(path, O_RDWR);
|
dev->device_handle = open(path, O_RDWR);
|
||||||
|
|
||||||
/* If we have a good handle, return it. */
|
/* If we have a good handle, return it. */
|
||||||
if (dev->device_handle > 0) {
|
if (dev->device_handle >= 0) {
|
||||||
|
|
||||||
/* Get the report descriptor */
|
/* Get the report descriptor */
|
||||||
int res, desc_size = 0;
|
int res, desc_size = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user