mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 23:46:50 +00:00
[USBHUB_NEW]
- Fix interval calculation in USBH_Wait. Patch by Vadim Galyant. svn path=/trunk/; revision=75599
This commit is contained in:
parent
a93c1aa32f
commit
18c780f243
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue