Commit 4eaabb1
winnt: Do not differ between cancel / timeout ourselves
(itransfer->flags & USBI_TRANSFER_TIMED_OUT) is already checked by
usbi_handle_transfer_cancellation(), make windows_transfer_callback()
call usbi_handle_transfer_cancellation() when
status == LIBUSB_TRANSFER_CANCELLED like all other os backends do, and
leave USBI_TRANSFER_TIMED_OUT handling up to the core, so that future
changes to timeout handling do no break winnt.
Signed-off-by: Hans de Goede <[email protected]>
---
Note: untested1 parent e9d9c73 commit 4eaabb1
2 files changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
512 | 507 | | |
513 | 508 | | |
514 | 509 | | |
515 | 510 | | |
516 | 511 | | |
517 | 512 | | |
518 | 513 | | |
519 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
520 | 518 | | |
521 | 519 | | |
522 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments