From b400397f693f45b27c998d499d5ed2b8da11a889 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 19 Jun 2005 13:57:50 +0000 Subject: [PATCH] Move comment about ECHO and LINE input modes to a more sensible position. Spotted by Ben Rudiak-Gould. [originally from svn r5976] --- windows/winplink.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/windows/winplink.c b/windows/winplink.c index fdf01901..ae80bf9b 100644 --- a/windows/winplink.c +++ b/windows/winplink.c @@ -598,16 +598,16 @@ int main(int argc, char **argv) inhandle = GetStdHandle(STD_INPUT_HANDLE); outhandle = GetStdHandle(STD_OUTPUT_HANDLE); errhandle = GetStdHandle(STD_ERROR_HANDLE); - GetConsoleMode(inhandle, &orig_console_mode); - SetConsoleMode(inhandle, ENABLE_PROCESSED_INPUT); - - main_thread_id = GetCurrentThreadId(); - /* * Turn off ECHO and LINE input modes. We don't care if this * call fails, because we know we aren't necessarily running in * a console. */ + GetConsoleMode(inhandle, &orig_console_mode); + SetConsoleMode(inhandle, ENABLE_PROCESSED_INPUT); + + main_thread_id = GetCurrentThreadId(); + handles[0] = netevent; handles[1] = stdinevent; handles[2] = stdoutevent;