X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=libaltos%2Flibaltos_darwin.c;h=794c021500e8673c237297c0677f224fcc15a4a1;hb=1451e2fd2092d720b0d49b93ac01bed7e88b831f;hp=c6b6355f870fb9e1cf33fbedb96dc93ea65fe6f0;hpb=1085ec5d57e0ed5d132f2bbdac1a0b6a32c0ab4a;p=fw%2Faltos diff --git a/libaltos/libaltos_darwin.c b/libaltos/libaltos_darwin.c index c6b6355f..794c0215 100644 --- a/libaltos/libaltos_darwin.c +++ b/libaltos/libaltos_darwin.c @@ -192,7 +192,8 @@ altos_list_next(struct altos_list *list, struct altos_device *device) if (get_number (usb_device, CFSTR(kUSBVendorID), &device->vendor) && get_number (usb_device, CFSTR(kUSBProductID), &device->product) && get_string (object, CFSTR(kIOCalloutDeviceKey), device->path, sizeof (device->path)) && - get_string (usb_device, CFSTR(kUSBProductString), device->name, sizeof (device->name)) && + (get_string (usb_device, CFSTR("kUSBProductString"), device->name, sizeof (device->name)) || + get_string (usb_device, CFSTR(kUSBProductString), device->name, sizeof (device->name))) && get_string (usb_device, CFSTR(kUSBSerialNumberString), serial_string, sizeof (serial_string))) { device->serial = atoi(serial_string); IOObjectRelease(object);