mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
Cygwin: console: Fix code for restoring console mode.
- Commit 774b8996d1f3e535e8267be4eb8e751d756c2cec has a bug that restores console output mode into console input. This patch fixes the issue.
This commit is contained in:
parent
a98e4f694f
commit
a16f1c1e24
@ -1122,7 +1122,7 @@ fhandler_console::close ()
|
||||
&obi, sizeof obi, NULL);
|
||||
if (NT_SUCCESS (status) && obi.HandleCount == 1)
|
||||
if (orig_conout_mode != (DWORD) -1)
|
||||
SetConsoleMode (get_handle (), orig_conout_mode);
|
||||
SetConsoleMode (get_output_handle (), orig_conout_mode);
|
||||
|
||||
release_output_mutex ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user