mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:02:59 +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
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ USBH_Wait(IN ULONG Milliseconds)
|
||||||
LARGE_INTEGER Interval;
|
LARGE_INTEGER Interval;
|
||||||
|
|
||||||
DPRINT("USBH_Wait: Milliseconds - %x\n", Milliseconds);
|
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);
|
return KeDelayExecutionThread(KernelMode, FALSE, &Interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue