mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
Externals/libusb: Mask index for control transfers correctly
This commit is contained in:
parent
8ea197357c
commit
99b340a6d0
2
Externals/libusb/libusb/os/windows_winusb.c
vendored
2
Externals/libusb/libusb/os/windows_winusb.c
vendored
@ -2474,7 +2474,7 @@ static int winusbx_submit_control_transfer(int sub_api, struct usbi_transfer *it
|
|||||||
return LIBUSB_ERROR_INVALID_PARAM;
|
return LIBUSB_ERROR_INVALID_PARAM;
|
||||||
|
|
||||||
if ((setup->RequestType & 0x1F) == LIBUSB_RECIPIENT_INTERFACE)
|
if ((setup->RequestType & 0x1F) == LIBUSB_RECIPIENT_INTERFACE)
|
||||||
current_interface = check_valid_interface(transfer->dev_handle, setup->Index, USB_API_WINUSBX);
|
current_interface = check_valid_interface(transfer->dev_handle, setup->Index & 0xff, USB_API_WINUSBX);
|
||||||
else
|
else
|
||||||
current_interface = get_valid_interface(transfer->dev_handle, USB_API_WINUSBX);
|
current_interface = get_valid_interface(transfer->dev_handle, USB_API_WINUSBX);
|
||||||
if (current_interface < 0) {
|
if (current_interface < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user