mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[CRT]
- Use PeekConsoleInput in kbhit because the input buffer should not be affected. Patch by Roy Tam CORE-8030 #resolve svn path=/trunk/; revision=62587
This commit is contained in:
@@ -15,8 +15,6 @@ static CRITICAL_SECTION CriticalSection;
|
||||
volatile BOOL CriticalSectionInitialized=FALSE;
|
||||
|
||||
/*
|
||||
* FIXME Initial keyboard char not detected on first punch
|
||||
*
|
||||
* @implemented
|
||||
*/
|
||||
|
||||
@@ -71,7 +69,7 @@ int _kbhit(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!ReadConsoleInput(StdInputHandle, InputRecord, EventsRead, &NumberRead))
|
||||
if (!PeekConsoleInput(StdInputHandle, InputRecord, EventsRead, &NumberRead))
|
||||
{
|
||||
free(InputRecord);
|
||||
LeaveCriticalSection(&CriticalSection);
|
||||
|
||||
Reference in New Issue
Block a user