summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
Diffstat (limited to 'osdep')
-rw-r--r--osdep/getch2-win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/getch2-win.c b/osdep/getch2-win.c
index b2495e65b0..80e745f9ef 100644
--- a/osdep/getch2-win.c
+++ b/osdep/getch2-win.c
@@ -93,7 +93,7 @@ int getch2(int time){
continue;
}
/*check for function keys*/
- if(0x87 >= eventbuffer[i].Event.KeyEvent.wVirtualKeyCode >= 0x70)
+ if(0x87 >= eventbuffer[i].Event.KeyEvent.wVirtualKeyCode && eventbuffer[i].Event.KeyEvent.wVirtualKeyCode >= 0x70)
return (KEY_F + 1 + eventbuffer[i].Event.KeyEvent.wVirtualKeyCode - 0x70);
/*only characters should be remaining*/