diff --git a/reactos/ntoskrnl/ke/gate.c b/reactos/ntoskrnl/ke/gate.c index dedb00523fa..6530667b7b6 100644 --- a/reactos/ntoskrnl/ke/gate.c +++ b/reactos/ntoskrnl/ke/gate.c @@ -47,7 +47,7 @@ KeWaitForGate(PKGATE Gate, OldIrql = KeAcquireDispatcherDatabaseLock(); /* Check if it's already signaled */ - if (!Gate->Header.SignalState) + if (Gate->Header.SignalState) { /* Unsignal it */ Gate->Header.SignalState = 0;