mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- Fix a bug in NtSetTimer which was causing us to completely disregard the due time.
- kmtest now reports 0 failures for the extimer regression test. svn path=/trunk/; revision=25610
This commit is contained in:
@@ -601,6 +601,11 @@ NtSetTimer(IN HANDLE TimerHandle,
|
||||
_SEH_END;
|
||||
if(!NT_SUCCESS(Status)) return Status;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Capture the time directly */
|
||||
TimerDueTime = *DueTime;
|
||||
}
|
||||
|
||||
/* Get the Timer Object */
|
||||
Status = ObReferenceObjectByHandle(TimerHandle,
|
||||
@@ -681,7 +686,7 @@ NtSetTimer(IN HANDLE TimerHandle,
|
||||
KeInitializeApc(&Timer->TimerApc,
|
||||
&Thread->Tcb,
|
||||
CurrentApcEnvironment,
|
||||
&ExpTimerApcKernelRoutine,
|
||||
ExpTimerApcKernelRoutine,
|
||||
(PKRUNDOWN_ROUTINE)NULL,
|
||||
(PKNORMAL_ROUTINE)TimerApcRoutine,
|
||||
PreviousMode,
|
||||
@@ -727,5 +732,3 @@ NtSetTimer(IN HANDLE TimerHandle,
|
||||
/* Return to Caller */
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
||||
Reference in New Issue
Block a user