mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
Windows: assign the right handle into conio->hout.
Thanks to Will Bond for spotting this. Using STD_INPUT_HANDLE as an output handle apparently works often enough that I didn't immediately notice the mistake, but it's not what I _meant_ to do. Obviously we should have used STD_OUTPUT_HANDLE instead.
This commit is contained in:
parent
6439c93b43
commit
81dcace4f1
@ -119,7 +119,7 @@ static ConsoleIO *conio_setup(bool utf8)
|
||||
if (conio->hin == INVALID_HANDLE_VALUE)
|
||||
conio->hin = GetStdHandle(STD_INPUT_HANDLE);
|
||||
if (conio->hout == INVALID_HANDLE_VALUE)
|
||||
conio->hout = GetStdHandle(STD_INPUT_HANDLE);
|
||||
conio->hout = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
|
||||
DWORD dummy;
|
||||
conio->hin_is_console = GetConsoleMode(conio->hin, &dummy);
|
||||
|
Loading…
Reference in New Issue
Block a user