[CONSRV] Use NtClearEvent() and NtClose() instead of the Win32 functions.
[reactos.git] / win32ss / user / winsrv / consrv / frontends / terminal.c
index ece6bb2..7cb89e6 100644 (file)
@@ -365,7 +365,7 @@ ConSrvTermReadStream(IN OUT PTERMINAL This,
             CurrentEntry = RemoveHeadList(&InputBuffer->InputEvents);
             if (IsListEmpty(&InputBuffer->InputEvents))
             {
-                ResetEvent(InputBuffer->ActiveEvent);
+                NtClearEvent(InputBuffer->ActiveEvent);
             }
             Input = CONTAINING_RECORD(CurrentEntry, ConsoleInput, ListEntry);
 
@@ -430,7 +430,7 @@ ConSrvTermReadStream(IN OUT PTERMINAL This,
             CurrentEntry = RemoveHeadList(&InputBuffer->InputEvents);
             if (IsListEmpty(&InputBuffer->InputEvents))
             {
-                ResetEvent(InputBuffer->ActiveEvent);
+                NtClearEvent(InputBuffer->ActiveEvent);
             }
             Input = CONTAINING_RECORD(CurrentEntry, ConsoleInput, ListEntry);