Need to get any outstanding input prior to returning number.
This commit is contained in:
parent
6e143b3379
commit
aa9f8dcf39
|
@ -1295,6 +1295,8 @@ BOOL WINAPI SetConsoleCursorPosition( HANDLE hcon, COORD pos )
|
|||
*/
|
||||
BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE hcon,LPDWORD nrofevents)
|
||||
{
|
||||
CONSOLE_get_input (hcon, FALSE);
|
||||
|
||||
return read_console_input( hcon, NULL, 0, nrofevents, FALSE );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue