[USBPORT] Correcting USB2_DeallocateEndpointBudget().
authorVadim Galyant <vgal@rambler.ru>
Sun, 17 Dec 2017 05:54:46 +0000 (14:54 +0900)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 21 Jan 2018 18:35:56 +0000 (19:35 +0100)
drivers/usb/usbport/usb2.c

index cfaf122..c0a218b 100644 (file)
@@ -1057,11 +1057,23 @@ USB2_DeallocateEndpointBudget(IN PUSB2_TT_ENDPOINT TtEndpoint,
     PUSB2_TT Tt;
     PUSB2_HC_EXTENSION HcExtension;
     ULONG Speed;
+    ULONG TransferType;
+    ULONG Frame;
     ULONG StartMicroframe;
     ULONG ix;
-
+    PUSB2_TT_ENDPOINT endpoint;
+    PUSB2_TT_ENDPOINT nextEndpoint;
+    PUSB2_TT_ENDPOINT lastEndpoint;
+    PUSB2_TT_ENDPOINT tmpEndpoint;
+    ULONG endTime;
+    ULONG maxEndTime;
+    ULONG lastEndTime;
+    ULONG Factor;
+    ULONG jx;
     UCHAR frame;
     UCHAR uframe;
+    USHORT Period;
+    BOOLEAN IsMoved = FALSE;
 
     DPRINT("USB2_DeallocateEndpointBudget: TtEndpoint - %p, MaxFrames - %X\n",
            TtEndpoint,