summaryrefslogtreecommitdiff
path: root/libusb/os
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2012-02-19 00:42:20 +0100
committerPeter Stuge <peter@stuge.se>2012-02-19 03:25:42 +0100
commitae8e86cffb81858af5eeddbf2ea1aec6d55f573d (patch)
tree4aa28d29de55e42d5347a59d44eac62d14f1d715 /libusb/os
parent4630fc22cff8ad3e1afa9b223378c0aabe282b5c (diff)
downloadlibusb-ae8e86cffb81858af5eeddbf2ea1aec6d55f573d.tar.gz
Darwin: Do not reject devices with product id 0x0000
Fixes #128.
Diffstat (limited to 'libusb/os')
-rw-r--r--libusb/os/darwin_usb.c3
1 files changed, 1 insertions, 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) {