From 161bcc1aa2f929329ff6edb7fce9988e7f81561a Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 2 Sep 2017 08:59:52 +0000 Subject: [PATCH] [USBPORT] - Fix logic error: don't complete IRPs for which the cancel routine has been called. svn path=/trunk/; revision=75736 --- reactos/drivers/usb/usbport/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/usb/usbport/queue.c b/reactos/drivers/usb/usbport/queue.c index 3ef29a98b33..75f2f45ef02 100644 --- a/reactos/drivers/usb/usbport/queue.c +++ b/reactos/drivers/usb/usbport/queue.c @@ -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); }