Merge pull request #2682 from AdmiralCurtiss/libusb-fix-win-crash-without-drivers
GC Adapter: Do not attempt to claim_interface when libusb_open() fails.
This commit is contained in:
commit
bee7f19d76
|
@ -235,6 +235,7 @@ static bool CheckDeviceAccess(libusb_device* device)
|
||||||
if (ret == LIBUSB_ERROR_NOT_SUPPORTED)
|
if (ret == LIBUSB_ERROR_NOT_SUPPORTED)
|
||||||
s_libusb_driver_not_supported = true;
|
s_libusb_driver_not_supported = true;
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
else if ((ret = libusb_kernel_driver_active(s_handle, 0)) == 1)
|
else if ((ret = libusb_kernel_driver_active(s_handle, 0)) == 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue