Don't release dispatcher lock in ExpBoostThread, we want to re-acquire it instead.
authorAlex Ionescu <aionescu@gmail.com>
Thu, 12 Jan 2006 17:52:51 +0000 (17:52 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Thu, 12 Jan 2006 17:52:51 +0000 (17:52 +0000)
svn path=/trunk/; revision=20807

reactos/ntoskrnl/ex/resource.c

index c1c1c4c..c2e50ef 100644 (file)
@@ -567,8 +567,8 @@ ExpBoostOwnerThread(IN PKTHREAD Thread,
             /* Update the kernel state */
             KiSetPriorityThread(OwnerThread, 14, &Released);
 
-            /* Release Lock if needed */
-            if (!Released) KeReleaseDispatcherDatabaseLockFromDpcLevel();
+            /* Reacquire lock if it got releases */
+            if (Released) KeAcquireDispatcherDatabaseLockFromDpcLevel();
 
             /* Make sure we're still at dispatch */
             ASSERT(KeGetCurrentIrql() >= DISPATCH_LEVEL);