https://git.reactos.org/?p=reactos.git;a=commitdiff;h=57f092106a86643726140…
commit 57f092106a86643726140a60cb2e217d2496c816
Author: Vadim Galyant <vgal(a)rambler.ru>
AuthorDate: Sun Dec 17 14:54:46 2017 +0900
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sun Jan 21 19:35:56 2018 +0100
[USBPORT] Correcting USB2_DeallocateEndpointBudget().
---
drivers/usb/usbport/usb2.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/usbport/usb2.c b/drivers/usb/usbport/usb2.c
index cfaf122fba..c0a218b867 100644
--- a/drivers/usb/usbport/usb2.c
+++ b/drivers/usb/usbport/usb2.c
@@ -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,