[USBHUB_NEW]

- Fix interval calculation in USBH_Wait. Patch by Vadim Galyant.

svn path=/trunk/; revision=75599
This commit is contained in:
Thomas Faber 2017-08-17 19:55:13 +00:00
parent a93c1aa32f
commit 18c780f243

View file

@ -18,7 +18,7 @@ USBH_Wait(IN ULONG Milliseconds)
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);
}