diff options
-rw-r--r-- | libusb/os/windows_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 084257e..e8e418d 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -1785,9 +1785,9 @@ static int windows_abort_transfers(struct usbi_transfer *itransfer) static int windows_cancel_transfer(struct usbi_transfer *itransfer) { struct libusb_transfer *transfer = __USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); +#if defined(FORCE_INSTANT_TIMEOUTS) struct windows_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer); -#if defined(FORCE_INSTANT_TIMEOUTS) // Forces instant overlapped completion on timeouts - use at your own risks if (itransfer->flags | USBI_TRANSFER_TIMED_OUT) { transfer_priv->pollable_fd.overlapped->Internal &= ~STATUS_PENDING; |