From 133cd71ba8bb910b3f958af04f8fb3de04118fdb Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 30 Sep 2005 22:00:30 +0000 Subject: [PATCH] don't remove mutants twice from the thread's mutant list in KeRundownThread(). This might fix bug 821 svn path=/trunk/; revision=18179 --- reactos/ntoskrnl/ke/kthread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ke/kthread.c b/reactos/ntoskrnl/ke/kthread.c index c3b58f07358..2c54c4e9f0d 100644 --- a/reactos/ntoskrnl/ke/kthread.c +++ b/reactos/ntoskrnl/ke/kthread.c @@ -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");