summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osdep/getch2-win.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/getch2-win.c b/osdep/getch2-win.c
index 449a44b7b4..b2495e65b0 100644
--- a/osdep/getch2-win.c
+++ b/osdep/getch2-win.c
@@ -36,6 +36,7 @@ int getch2(int time){
int i=0;
if(!getch2_status)return -1;
/*check if there are input events*/
+ WaitForSingleObject(stdin, time);
if(!GetNumberOfConsoleInputEvents(stdin,&retval))
{
printf("getch2: can't get number of input events: %i\n",GetLastError());