Fix another bug in the libusb1 part of functioin check_libusb_device()

that prevents sanner detection for certain devices.
merge-requests/1/head
Gerhard Jaeger 2013-02-22 09:07:32 +01:00
rodzic 65773982fe
commit 69a2ec6801
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1046,7 +1046,7 @@ check_libusb_device (libusb_device *dev, SANE_Bool from_file)
break;
case USB_CLASS_PER_INTERFACE:
if ((config0->interface[intf].num_altsetting == 0)
|| config0->interface[intf].altsetting)
|| !config0->interface[intf].altsetting)
break;
switch (config0->interface[intf].altsetting[0].bInterfaceClass)
{