Author: ion
Date: Wed Jan 24 07:46:31 2007
New Revision: 25610
URL:
http://svn.reactos.org/svn/reactos?rev=25610&view=rev
Log:
- 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.
Modified:
trunk/reactos/ntoskrnl/ex/timer.c
Modified: trunk/reactos/ntoskrnl/ex/timer.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/timer.c?rev=25…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/timer.c (original)
+++ trunk/reactos/ntoskrnl/ex/timer.c Wed Jan 24 07:46:31 2007
@@ -601,6 +601,11 @@
_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 @@
KeInitializeApc(&Timer->TimerApc,
&Thread->Tcb,
CurrentApcEnvironment,
- &ExpTimerApcKernelRoutine,
+ ExpTimerApcKernelRoutine,
(PKRUNDOWN_ROUTINE)NULL,
(PKNORMAL_ROUTINE)TimerApcRoutine,
PreviousMode,
@@ -727,5 +732,3 @@
/* Return to Caller */
return Status;
}
-
-/* EOF */