mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 02:56:09 +00:00
[USBPORT]
- Fix logic error: don't complete IRPs for which the cancel routine has been called. svn path=/trunk/; revision=75736
This commit is contained in:
parent
6af37fd54e
commit
161bcc1aa2
1 changed files with 1 additions and 1 deletions
|
@ -1042,7 +1042,7 @@ USBPORT_QueuePendingTransferIrp(IN PIRP Irp)
|
|||
|
||||
IoSetCancelRoutine(Irp, USBPORT_CancelPendingTransferIrp);
|
||||
|
||||
if (Irp->Cancel && !IoSetCancelRoutine(Irp, NULL))
|
||||
if (Irp->Cancel && IoSetCancelRoutine(Irp, NULL))
|
||||
{
|
||||
USBPORT_CompleteTransfer(Urb, USBD_STATUS_CANCELED);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue