mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-21 00:16:04 -04:00
darwin: return LIBUSB_ERROR_NOT_FOUND when reading the active config descriptor when the device is not configured.
fixes #172 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
committed by
Hans de Goede
parent
2bb148be97
commit
b247ea165c
@@ -508,7 +508,7 @@ static int darwin_get_active_config_descriptor(struct libusb_device *dev, unsign
|
||||
int config_index;
|
||||
|
||||
if (0 == priv->active_config)
|
||||
return LIBUSB_ERROR_INVALID_PARAM;
|
||||
return LIBUSB_ERROR_NOT_FOUND;
|
||||
|
||||
config_index = get_configuration_index (dev, priv->active_config);
|
||||
if (config_index < 0)
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 10663
|
||||
#define LIBUSB_NANO 10664
|
||||
|
||||
Reference in New Issue
Block a user