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:
Nathan Hjelm
2013-05-03 08:03:37 -06:00
committed by Hans de Goede
parent 2bb148be97
commit b247ea165c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -1 +1 @@
#define LIBUSB_NANO 10663
#define LIBUSB_NANO 10664