Windows: Fix hid_abort_transfers blocking

Closes #392

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
zachary
2018-02-10 16:59:49 +08:00
committed by Chris Dickens
parent 32617df714
commit 8551e4a7a2
2 changed files with 2 additions and 2 deletions

View File

@@ -3671,7 +3671,7 @@ static int hid_abort_transfers(int sub_api, struct usbi_transfer *itransfer)
}
usbi_dbg("will use interface %d", current_interface);
hid_handle = handle_priv->interface_handle[current_interface].dev_handle;
hid_handle = handle_priv->interface_handle[current_interface].api_handle;
if (pCancelIoEx != NULL) {
// Use CancelIoEx if available to cancel just a single transfer

View File

@@ -1 +1 @@
#define LIBUSB_NANO 11299
#define LIBUSB_NANO 11300