[PATCH 5/7] xinput: Use DIGCF_PRESENT.

Aric Stewart aric at codeweavers.com
Fri Aug 17 14:04:27 CDT 2018


Signed-off-by: Aric Stewart <aric at codeweavers.com>


On 8/16/18 5:53 PM, Zebediah Figura wrote:
> Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
> ---
>   dlls/xinput1_3/hid.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dlls/xinput1_3/hid.c b/dlls/xinput1_3/hid.c
> index 3c54890..8a35443 100644
> --- a/dlls/xinput1_3/hid.c
> +++ b/dlls/xinput1_3/hid.c
> @@ -241,7 +241,7 @@ void HID_find_gamepads(xinput_controller *devices)
>   
>       EnterCriticalSection(&hid_xinput_crit);
>   
> -    device_info_set = SetupDiGetClassDevsW(&hid_guid, NULL, NULL, DIGCF_DEVICEINTERFACE);
> +    device_info_set = SetupDiGetClassDevsW(&hid_guid, NULL, NULL, DIGCF_DEVICEINTERFACE | DIGCF_PRESENT);
>   
>       data = HeapAlloc(GetProcessHeap(), 0 , sizeof(*data) + detail_size);
>       data->cbSize = sizeof(*data);
> 



More information about the wine-devel mailing list