Author: tfaber
Date: Thu Aug 17 19:55:13 2017
New Revision: 75599
URL:
http://svn.reactos.org/svn/reactos?rev=75599&view=rev
Log:
[USBHUB_NEW]
- Fix interval calculation in USBH_Wait. Patch by Vadim Galyant.
Modified:
trunk/reactos/drivers/usb/usbhub_new/usbhub.c
Modified: trunk/reactos/drivers/usb/usbhub_new/usbhub.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbhub_new/usb…
==============================================================================
--- trunk/reactos/drivers/usb/usbhub_new/usbhub.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbhub_new/usbhub.c [iso-8859-1] Thu Aug 17 19:55:13 2017
@@ -18,7 +18,7 @@
LARGE_INTEGER Interval;
DPRINT("USBH_Wait: Milliseconds - %x\n", Milliseconds);
- Interval.QuadPart = -10000 * Milliseconds + (KeQueryTimeIncrement() - 1);
+ Interval.QuadPart = -10000LL * Milliseconds - ((ULONGLONG)KeQueryTimeIncrement() -
1);
return KeDelayExecutionThread(KernelMode, FALSE, &Interval);
}