From ae8e86cffb81858af5eeddbf2ea1aec6d55f573d Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Sun, 19 Feb 2012 00:42:20 +0100 Subject: [PATCH] Darwin: Do not reject devices with product id 0x0000 Fixes #128. --- libusb/os/darwin_usb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c index 084a838..a7696b7 100644 --- a/libusb/os/darwin_usb.c +++ b/libusb/os/darwin_usb.c @@ -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) { -- 2.34.1