mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[win32k]
- Check that the thread is not in cleanup before attempting to do anything related to it. Add a couple asserts for sanity. svn path=/trunk/; revision=47249
This commit is contained in:
parent
39c39d457f
commit
6666b6b68b
1 changed files with 4 additions and 3 deletions
|
@ -368,7 +368,8 @@ ProcessTimers(VOID)
|
||||||
{
|
{
|
||||||
if (pTmr->cmsCountdown < 0)
|
if (pTmr->cmsCountdown < 0)
|
||||||
{
|
{
|
||||||
if (!(pTmr->flags & TMRF_READY))
|
ASSERT(pTmr->pti);
|
||||||
|
if ((!(pTmr->flags & TMRF_READY)) && (!(pTmr->pti->TIF_flags & TIF_INCLEANUP)))
|
||||||
{
|
{
|
||||||
if (pTmr->flags & TMRF_ONESHOT)
|
if (pTmr->flags & TMRF_ONESHOT)
|
||||||
pTmr->flags |= TMRF_WAITING;
|
pTmr->flags |= TMRF_WAITING;
|
||||||
|
@ -384,7 +385,7 @@ ProcessTimers(VOID)
|
||||||
// Set thread message queue for this timer.
|
// Set thread message queue for this timer.
|
||||||
if (pTmr->pti->MessageQueue)
|
if (pTmr->pti->MessageQueue)
|
||||||
{ // Wakeup thread
|
{ // Wakeup thread
|
||||||
if (pTmr->pti->MessageQueue->WakeMask & QS_POSTMESSAGE)
|
ASSERT(pTmr->pti->MessageQueue->NewMessages != NULL);
|
||||||
KeSetEvent(pTmr->pti->MessageQueue->NewMessages, IO_NO_INCREMENT, FALSE);
|
KeSetEvent(pTmr->pti->MessageQueue->NewMessages, IO_NO_INCREMENT, FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue