Always set the console's event on any keypress, even in line input mode.

svn path=/trunk/; revision=35489
This commit is contained in:
Jeffrey Morlan 2008-08-20 20:55:39 +00:00
parent fca286cbda
commit ed0615e6ac

View file

@ -960,7 +960,6 @@ ConioProcessChar(PCSRSS_CONSOLE Console,
ConsoleInput *KeyEventRecord) ConsoleInput *KeyEventRecord)
{ {
BOOL updown; BOOL updown;
BOOL bClientWake = FALSE;
ConsoleInput *TempInput; ConsoleInput *TempInput;
if (0 != (Console->Mode & (ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT))) if (0 != (Console->Mode & (ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT)))
@ -1004,8 +1003,6 @@ ConioProcessChar(PCSRSS_CONSOLE Console,
{ {
Console->WaitingLines++; Console->WaitingLines++;
} }
bClientWake = TRUE;
SetEvent(Console->ActiveEvent);
} }
KeyEventRecord->Echoed = FALSE; KeyEventRecord->Echoed = FALSE;
if (0 != (Console->Mode & (ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT)) if (0 != (Console->Mode & (ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT))
@ -1037,10 +1034,7 @@ ConioProcessChar(PCSRSS_CONSOLE Console,
RemoveEntryList(&KeyEventRecord->ListEntry); RemoveEntryList(&KeyEventRecord->ListEntry);
HeapFree(Win32CsrApiHeap, 0, KeyEventRecord); HeapFree(Win32CsrApiHeap, 0, KeyEventRecord);
Console->WaitingChars -= 2; Console->WaitingChars -= 2;
} return;
else
{
SetEvent(Console->ActiveEvent);
} }
} }
else else
@ -1061,10 +1055,7 @@ ConioProcessChar(PCSRSS_CONSOLE Console,
} }
/* Console->WaitingChars++; */ /* Console->WaitingChars++; */
if (bClientWake || 0 == (Console->Mode & ENABLE_LINE_INPUT)) SetEvent(Console->ActiveEvent);
{
SetEvent(Console->ActiveEvent);
}
} }
static DWORD FASTCALL static DWORD FASTCALL