darwin: return LIBUSB_ERROR_NOT_FOUND when reading the active config descriptor when...
authorNathan Hjelm <hjelmn@me.com>
Fri, 3 May 2013 14:03:37 +0000 (08:03 -0600)
committerHans de Goede <hdegoede@redhat.com>
Wed, 15 May 2013 18:43:35 +0000 (20:43 +0200)
fixes #172

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/os/darwin_usb.c
libusb/version_nano.h

index 83a62a3..cdc88a4 100644 (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)
index 82c30cc..7871963 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10663
+#define LIBUSB_NANO 10664