mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- KeSetTimerEx: When canceling the insertion of an expired timer, don't forget to exit the dispatcher and return. Fixes crashes exposed by kernel32 Winetest "timer", caused by KiTimerTableListHead suddenly having broken entries.
- Also fix a comment -- KiExitDispatcher doesn't release the dispatcher lock, it is done in KxInsertTimer svn path=/trunk/; revision=37068
This commit is contained in:
@@ -398,6 +398,10 @@ KeSetTimerEx(IN OUT PKTIMER Timer,
|
||||
|
||||
/* Check if we need to do an interrupt */
|
||||
if (RequestInterrupt) HalRequestSoftwareInterrupt(DISPATCH_LEVEL);
|
||||
|
||||
/* Exit the dispatcher and return the old state */
|
||||
KiExitDispatcher(OldIrql);
|
||||
return Inserted;
|
||||
}
|
||||
|
||||
/* Set the time as Absolute */
|
||||
@@ -419,7 +423,7 @@ KeSetTimerEx(IN OUT PKTIMER Timer,
|
||||
Timer->Header.SignalState = FALSE;
|
||||
KxInsertTimer(Timer, Hand);
|
||||
|
||||
/* Release Dispatcher Lock */
|
||||
/* Exit the dispatcher */
|
||||
KiExitDispatcher(OldIrql);
|
||||
|
||||
/* Return old state */
|
||||
|
||||
Reference in New Issue
Block a user