[glib] Change W32 console detection to look at the window, not stdout
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Change W32 console detection to look at the window, not stdout
- Date: Tue, 5 Aug 2014 06:44:43 +0000 (UTC)
commit 14f2376c8a06f0936d734ec6a7e0e836072acf65
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Wed Jul 30 07:15:39 2014 +0000
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
glib/gspawn-win32.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gspawn-win32.c b/glib/gspawn-win32.c
index 2acbde3..d98aba1 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";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]