Fix signalstate check in KGATE code; spotted by magey.

svn path=/trunk/; revision=18017
This commit is contained in:
Alex Ionescu 2005-09-23 16:31:06 +00:00
parent c6d8b12b89
commit 081b39d0ef

View file

@ -47,7 +47,7 @@ KeWaitForGate(PKGATE Gate,
OldIrql = KeAcquireDispatcherDatabaseLock(); OldIrql = KeAcquireDispatcherDatabaseLock();
/* Check if it's already signaled */ /* Check if it's already signaled */
if (!Gate->Header.SignalState) if (Gate->Header.SignalState)
{ {
/* Unsignal it */ /* Unsignal it */
Gate->Header.SignalState = 0; Gate->Header.SignalState = 0;