mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 12:08:55 +00:00
- Fixed the wrong check for KMUTEX objects in KeRundownThread.
- Fixed the endless loop in KeRundownThread. svn path=/trunk/; revision=14335
This commit is contained in:
parent
a24101498d
commit
b4e10fa87d
1 changed files with 3 additions and 3 deletions
|
@ -355,12 +355,12 @@ KeRundownThread(VOID)
|
|||
/* Lock the Dispatcher Database */
|
||||
OldIrql = KeAcquireDispatcherDatabaseLock();
|
||||
|
||||
CurrentEntry = Thread->MutantListHead.Flink;
|
||||
while (CurrentEntry != &Thread->MutantListHead) {
|
||||
while (!IsListEmpty(&Thread->MutantListHead)) {
|
||||
|
||||
/* Get the Mutant */
|
||||
CurrentEntry = RemoveHeadList(&Thread->MutantListHead);
|
||||
Mutant = CONTAINING_RECORD(CurrentEntry, KMUTANT, MutantListEntry);
|
||||
ASSERT(Mutant->ApcDisable);
|
||||
ASSERT(Mutant->ApcDisable == 0);
|
||||
|
||||
/* Uncondtionally abandon it */
|
||||
DPRINT("Abandonning the Mutant\n");
|
||||
|
|
Loading…
Reference in a new issue