[USBPORT]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 2 Sep 2017 08:59:52 +0000 (08:59 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 2 Sep 2017 08:59:52 +0000 (08:59 +0000)
- 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

index 3ef29a9..75f2f45 100644 (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);
     }