Commit 6cb35889 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ntoskrnl.exe: Cancel active timer before setting it.

parent 4584ffad
......@@ -443,7 +443,9 @@ BOOLEAN WINAPI KeSetTimerEx( KTIMER *timer, LARGE_INTEGER duetime, LONG period,
EnterCriticalSection( &sync_cs );
ret = timer->Header.Inserted;
if ((ret = timer->Header.Inserted))
KeCancelTimer(timer);
timer->Header.Inserted = TRUE;
if (!timer->TimerListEntry.Blink)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment