mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTOS:EX] Worker threads must not exit with a critical region held. CORE-13734
This commit is contained in:
parent
282b4397e0
commit
2b8f4f6e24
1 changed files with 3 additions and 2 deletions
|
@ -162,7 +162,7 @@ ProcessLoop:
|
|||
WorkItem->WorkerRoutine(WorkItem->Parameter);
|
||||
|
||||
/* Make sure APCs are not disabled */
|
||||
if (Thread->Tcb.SpecialApcDisable)
|
||||
if (Thread->Tcb.CombinedApcDisable != 0)
|
||||
{
|
||||
/* We're nice and do it behind your back */
|
||||
DPRINT1("Warning: Broken Worker Thread: %p %p %p came back "
|
||||
|
@ -170,7 +170,8 @@ ProcessLoop:
|
|||
WorkItem->WorkerRoutine,
|
||||
WorkItem->Parameter,
|
||||
WorkItem);
|
||||
Thread->Tcb.SpecialApcDisable = 0;
|
||||
ASSERT(Thread->Tcb.CombinedApcDisable == 0);
|
||||
Thread->Tcb.CombinedApcDisable = 0;
|
||||
}
|
||||
|
||||
/* Make sure it returned at right IRQL */
|
||||
|
|
Loading…
Reference in a new issue