mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
don't remove mutants twice from the thread's mutant list in KeRundownThread(). This might fix bug 821
svn path=/trunk/; revision=18179
This commit is contained in:
parent
1e9a5c2f05
commit
133cd71ba8
1 changed files with 1 additions and 2 deletions
|
@ -467,7 +467,7 @@ KeRundownThread(VOID)
|
|||
while (!IsListEmpty(&Thread->MutantListHead)) {
|
||||
|
||||
/* Get the Mutant */
|
||||
CurrentEntry = RemoveHeadList(&Thread->MutantListHead);
|
||||
CurrentEntry = RemoveHeadList(&Thread->MutantListHead);
|
||||
Mutant = CONTAINING_RECORD(CurrentEntry, KMUTANT, MutantListEntry);
|
||||
ASSERT(Mutant->ApcDisable == 0);
|
||||
|
||||
|
@ -476,7 +476,6 @@ KeRundownThread(VOID)
|
|||
Mutant->Header.SignalState = 1;
|
||||
Mutant->Abandoned = TRUE;
|
||||
Mutant->OwnerThread = NULL;
|
||||
RemoveEntryList(&Mutant->MutantListEntry);
|
||||
|
||||
/* Check if the Wait List isn't empty */
|
||||
DPRINT("Checking whether to wake the Mutant\n");
|
||||
|
|
Loading…
Reference in a new issue