[PATCH v2] HID: Handle failure to create device by trying to open it instead

Aric Stewart aric at codeweavers.com
Wed Mar 20 08:14:50 CDT 2019



On 3/20/19 7:48 AM, Ztirfe Elgnid wrote:
> 
> On Mar 20, 2019, at 7:26 AM, Aric Stewart <aric at codeweavers.com> wrote:
>>
>>
>> v2: With input from Huw Davies
>>
>> Signed-off-by: Aric Stewart <aric at codeweavers.com>
>> ---
>> dlls/hidclass.sys/device.c | 11 +++++------
>> dlls/winebus.sys/main.c    | 12 +++++++++---
>> 2 files changed, 14 insertions(+), 9 deletions(-)
>>
>>
>> <v2-0001-HID-Handle-failure-to-create-device-by-trying-to-op.txt>
>>
> 
> Why is this necessary? All we do in both winebus and hidclass is register the device, and if SetupDiOpenDeviceInfo() succeeds then the device was already registered. And we don't depend in either case on the setupapi routines succeeding.
> 

Well I have not dug deep into it but none of my gamepads where showing up in any of my wine apps until I did this.

-aric



More information about the wine-devel mailing list