Author: tfaber Date: Sun Mar 30 15:46:02 2014 New Revision: 62587
URL: http://svn.reactos.org/svn/reactos?rev=62587&view=rev Log: [CRT] - Use PeekConsoleInput in kbhit because the input buffer should not be affected. Patch by Roy Tam CORE-8030 #resolve
Modified: trunk/reactos/lib/sdk/crt/conio/kbhit.c
Modified: trunk/reactos/lib/sdk/crt/conio/kbhit.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/conio/kbhit.c?r... ============================================================================== --- trunk/reactos/lib/sdk/crt/conio/kbhit.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/conio/kbhit.c [iso-8859-1] Sun Mar 30 15:46:02 2014 @@ -15,8 +15,6 @@ volatile BOOL CriticalSectionInitialized=FALSE;
/* - * FIXME Initial keyboard char not detected on first punch - * * @implemented */
@@ -71,7 +69,7 @@ return 0; }
- if (!ReadConsoleInput(StdInputHandle, InputRecord, EventsRead, &NumberRead)) + if (!PeekConsoleInput(StdInputHandle, InputRecord, EventsRead, &NumberRead)) { free(InputRecord); LeaveCriticalSection(&CriticalSection);