summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2014-07-30 07:15:39 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2014-08-05 06:44:01 +0000
commit14f2376c8a06f0936d734ec6a7e0e836072acf65 (patch)
treeb5a66e268f5f003cefbb30133f0fb22605ec1735
parent4f734873006729d18551c215d9dcf22392dbeaf3 (diff)
Change W32 console detection to look at the window, not stdout
Check for console window being attached to the process, not for stdout being redirected into a console window. https://bugzilla.gnome.org/show_bug.cgi?id=733960
-rw-r--r--glib/gspawn-win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gspawn-win32.c b/glib/gspawn-win32.c
index 2acbde33c..d98aba126 100644
--- a/glib/gspawn-win32.c
+++ b/glib/gspawn-win32.c
@@ -590,7 +590,7 @@ do_spawn_with_pipes (gint *exit_status,
goto cleanup_and_fail;
new_argv = g_new (char *, argc + 1 + ARG_COUNT);
- if (GetConsoleCursorInfo (GetStdHandle (STD_OUTPUT_HANDLE), &cursor_info))
+ if (GetConsoleWindow () != NULL)
helper_process = HELPER_PROCESS "-console.exe";
else
helper_process = HELPER_PROCESS ".exe";