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

Ztirfe Elgnid z.figura12 at gmail.com
Wed Mar 20 07:48:09 CDT 2019


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.


More information about the wine-devel mailing list