Need to get any outstanding input prior to returning number.

This commit is contained in:
Guy L. Albertelli 2000-10-31 00:59:22 +00:00 committed by Alexandre Julliard
parent 6e143b3379
commit aa9f8dcf39

View file

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