Commit de265dfa authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winebus: Remove devices that are ignored wrt hidraw preferences.

parent 8b41c2cf
......@@ -670,8 +670,10 @@ static DWORD CALLBACK bus_main_thread(void *args)
if (desc.is_hidraw && !desc.usages.UsagePage) desc.usages = get_hidraw_device_usages(event->device);
if (!desc.is_hidraw != !is_hidraw_enabled(desc.vid, desc.pid, &desc.usages))
{
struct device_remove_params params = {.device = event->device};
WARN("ignoring %shidraw device %04x:%04x with usages %04x:%04x\n", desc.is_hidraw ? "" : "non-",
desc.vid, desc.pid, desc.usages.UsagePage, desc.usages.Usage);
winebus_call(device_remove, &params);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment