diff options
author | Linus Walleij <triad@df.lth.se> | 2006-08-27 09:33:52 +0000 |
---|---|---|
committer | Linus Walleij <triad@df.lth.se> | 2006-08-27 09:33:52 +0000 |
commit | 4af6fbe6815238230dca9b5c2fe4d5f30239dcf6 (patch) | |
tree | e0819753f950eb81fff5c24a64e9e5e2b38c060b | |
parent | d214b9bae4e9b0c106a21ff3a3c24029982f9d50 (diff) | |
download | libmtp-4af6fbe6815238230dca9b5c2fe4d5f30239dcf6.tar.gz |
bad callback counter
-rw-r--r-- | src/libusb-glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libusb-glue.c b/src/libusb-glue.c index 7e9116a..b5153cb 100644 --- a/src/libusb-glue.c +++ b/src/libusb-glue.c @@ -388,7 +388,7 @@ ptp_write_func (unsigned char *bytes, unsigned int size, void *data) // Increase counters, call callback if (ptp_usb->callback_active) { - ptp_usb->current_transfer_complete += result; + ptp_usb->current_transfer_complete += curwrite; if (ptp_usb->current_transfer_callback != NULL) { (void) ptp_usb->current_transfer_callback(ptp_usb->current_transfer_complete, ptp_usb->current_transfer_total, |