Fixed possible mac when unplugging a device during enumeration

This commit is contained in:
Richard Bateman
2011-06-24 15:21:27 -06:00
parent 687a8385a1
commit d94f682c70
+3
View File
@@ -320,6 +320,9 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
IOHIDDeviceRef dev = device_array[i];
if (!dev) {
continue;
}
dev_vid = get_vendor_id(dev);
dev_pid = get_product_id(dev);