mirror of
https://github.com/reactos/reactos.git
synced 2025-05-16 15:50:24 +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:
parent
7528e5d671
commit
5f0ac6952a
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue