Author: ion
Date: Sun Mar 11 03:42:18 2007
New Revision: 26061
URL:
http://svn.reactos.org/svn/reactos?rev=26061&view=rev
Log:
- Release dispatcher lock if gate is already signaled.
See issue #2083 for more details.
Modified:
trunk/reactos/ntoskrnl/ke/gate.c
Modified: trunk/reactos/ntoskrnl/ke/gate.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/gate.c?rev=260…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/gate.c (original)
+++ trunk/reactos/ntoskrnl/ke/gate.c Sun Mar 11 03:42:18 2007
@@ -75,6 +75,9 @@
KiReleaseDispatcherObject(&Gate->Header);
KiReleaseThreadLock(Thread);
+ /* Release the gate lock */
+ if (Queue) KiReleaseDispatcherLockFromDpcLevel();
+
/* Release the APC lock and return */
KiReleaseApcLock(&ApcLock);
break;