* fhandler_console.cc (fhandler_console::need_invisible): Remove duplicate

test.
This commit is contained in:
Christopher Faylor 2006-01-07 18:00:19 +00:00
parent 85c804ec4b
commit b5c8e33120
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-01-07 Christopher Faylor <cgf@timesys.com>
* fhandler_console.cc (fhandler_console::need_invisible): Remove
duplicate test.
2006-01-07 Christopher Faylor <cgf@timesys.com> 2006-01-07 Christopher Faylor <cgf@timesys.com>
* fhandler.h (set_console_state_for_spawn): Eliminate argument from * fhandler.h (set_console_state_for_spawn): Eliminate argument from

View File

@ -144,7 +144,7 @@ tty_list::get_tty (int n)
If it is, then just return. If the console has been initialized, then If it is, then just return. If the console has been initialized, then
set it into a more friendly state for non-cygwin apps. */ set it into a more friendly state for non-cygwin apps. */
void __stdcall void __stdcall
set_console_state_for_spawn (bool noncygwin_process) set_console_state_for_spawn ()
{ {
if (fhandler_console::need_invisible ()) if (fhandler_console::need_invisible ())
return; return;
@ -1870,7 +1870,7 @@ fhandler_console::need_invisible ()
} }
else else
{ {
if (myself->ctty == -1 && oi.dwFlags & WSF_VISIBLE) if (myself->ctty == -1)
{ {
h = CreateWindowStation (NULL, 0, WINSTA_ACCESS, NULL); h = CreateWindowStation (NULL, 0, WINSTA_ACCESS, NULL);
termios_printf ("CreateWindowStation(NULL, %p), %E", h); termios_printf ("CreateWindowStation(NULL, %p), %E", h);