diff options
author | Pete Batard <pbatard@gmail.com> | 2010-02-16 22:20:17 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-02-16 22:20:17 +0000 |
commit | 00d87387ec131e440a647d5e664758b46481744c (patch) | |
tree | 662d93e416cf793e7541b0a67b4bf6feae6bca96 | |
parent | 416c5d90af5d07be73587a94eafc2c4436a8999d (diff) | |
download | libusb-00d87387ec131e440a647d5e664758b46481744c.tar.gz |
revert back to call copy_transfer_data always in callbackr156
previous change there was unnecessary and actually messed up control transfers
-rw-r--r-- | libusb/os/windows_usb.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 5a76a85..fbe848d 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -1805,12 +1805,7 @@ static void windows_transfer_callback(struct usbi_transfer *itransfer, uint32_t switch(io_result) { case NO_ERROR: - if (transfer->endpoint & LIBUSB_ENDPOINT_IN) { - // copy_transfer_data() is only needed on read operations - status = priv->apib->copy_transfer_data(itransfer, io_size); - } else { - status = LIBUSB_TRANSFER_COMPLETED; - } + status = priv->apib->copy_transfer_data(itransfer, io_size); break; case ERROR_GEN_FAILURE: usbi_dbg("detected endpoint stall"); |