From 00d87387ec131e440a647d5e664758b46481744c Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Tue, 16 Feb 2010 22:20:17 +0000 Subject: revert back to call copy_transfer_data always in callback previous change there was unnecessary and actually messed up control transfers --- libusb/os/windows_usb.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libusb') 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"); -- cgit v1.2.1