public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: console: Fix code for restoring console mode.
@ 2020-02-17 12:57 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-02-17 12:57 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=c16e73043ee4249871bd2113dc71dac0b7c08c90
commit c16e73043ee4249871bd2113dc71dac0b7c08c90
Author: Takashi Yano <takashi.yano@nifty.ne.jp>
Date: Mon Feb 17 21:46:27 2020 +0900
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.
Diff:
---
winsup/cygwin/fhandler_console.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 2afb5c5..9bfee64 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -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 ();
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-17 12:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-17 12:57 [newlib-cygwin] Cygwin: console: Fix code for restoring console mode Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).