Darwin: Do not reject devices with product id 0x0000
authorPeter Stuge <peter@stuge.se>
Sat, 18 Feb 2012 23:42:20 +0000 (00:42 +0100)
committerPeter Stuge <peter@stuge.se>
Sun, 19 Feb 2012 02:25:42 +0000 (03:25 +0100)
Fixes #128.

libusb/os/darwin_usb.c

index 084a838ccae02c8e2fa730efae6d8dd984d267db..a7696b75ea44775afa2ba7abd5c2a16edcad5943 100644 (file)
@@ -600,8 +600,7 @@ static int darwin_cache_device_descriptor (struct libusb_context *ctx, struct li
       /* received an overrun error but we still received a device descriptor */
       ret = kIOReturnSuccess;
 
-    if (kIOReturnSuccess == ret && (0 == priv->dev_descriptor.idProduct ||
-                                   0 == priv->dev_descriptor.bNumConfigurations ||
+    if (kIOReturnSuccess == ret && (0 == priv->dev_descriptor.bNumConfigurations ||
                                    0 == priv->dev_descriptor.bcdUSB)) {
       /* work around for incorrectly configured devices */
       if (try_reconfigure && is_open) {