mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-24 18:38:48 +02:00
Filter libusb devices early in enumeration
Some device drivers crash if you query things like manufacturer and product name, so make sure we only touch devices that we're really interested in.
This commit is contained in:
@@ -906,7 +906,7 @@ static struct hid_device_info * create_device_info_for_device(struct udev_device
|
||||
|
||||
cur_dev = root;
|
||||
while (cur_dev) {
|
||||
if (HIDAPI_IGNORE_DEVICE(cur_dev->bus_type, cur_dev->vendor_id, cur_dev->product_id, cur_dev->usage_page, cur_dev->usage)) {
|
||||
if (HIDAPI_IGNORE_DEVICE(cur_dev->bus_type, cur_dev->vendor_id, cur_dev->product_id, cur_dev->usage_page, cur_dev->usage, false)) {
|
||||
struct hid_device_info *tmp = cur_dev;
|
||||
|
||||
cur_dev = tmp->next;
|
||||
|
||||
Reference in New Issue
Block a user