From d0b525121af63cc8cf19f2207a5ef384c78e61f6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 9 Sep 2014 19:20:35 +0200 Subject: terminal-win: minor simplification Code should be equivalent. --- osdep/terminal-win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'osdep') diff --git a/osdep/terminal-win.c b/osdep/terminal-win.c index def8cd6569..20077abc7e 100644 --- a/osdep/terminal-win.c +++ b/osdep/terminal-win.c @@ -78,7 +78,7 @@ static void read_input(void) /*check if there are input events*/ if (!GetNumberOfConsoleInputEvents(in, &retval)) return; - if (retval <= 0) + if (!retval) return; /*read all events*/ @@ -102,7 +102,7 @@ static void read_input(void) mp_input_put_key(input_ctx, mpkey); } else { /*only characters should be remaining*/ - int c = eventbuffer[i].Event.KeyEvent.uChar.UnicodeChar; + int c = record->uChar.UnicodeChar; if (c > 0) mp_input_put_key(input_ctx, c); } -- cgit v1.2.3