Windows: Fix hid_abort_transfers blocking
authorzachary <ryanliuf2126.com>
Sat, 10 Feb 2018 08:59:49 +0000 (16:59 +0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Sat, 24 Feb 2018 08:03:43 +0000 (00:03 -0800)
Closes #392

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/windows_winusb.c
libusb/version_nano.h

index 180affb..05af1f6 100644 (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
index eb2eab4..5d22c03 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11299
+#define LIBUSB_NANO 11300