- 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:
Thomas Faber 2014-03-30 15:46:02 +00:00
parent 7528e5d671
commit 5f0ac6952a

View file

@ -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);