Need to get any outstanding input prior to returning number.

oldstable
Guy L. Albertelli 2000-10-31 00:59:22 +00:00 committed by Alexandre Julliard
parent 6e143b3379
commit aa9f8dcf39
1 changed files with 2 additions and 0 deletions

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