[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:
Thomas Faber 2017-09-02 08:59:52 +00:00
parent 6af37fd54e
commit 161bcc1aa2

View file

@ -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);
}