ntoskrnl.exe: Cancel active timer before setting it.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4584ffadda
commit
6cb3588969
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue