projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4f73487
)
Change W32 console detection to look at the window, not stdout
author
Руслан Ижбулатов
<lrn1986@gmail.com>
Wed, 30 Jul 2014 07:15:39 +0000
(07:15 +0000)
committer
Руслан Ижбулатов
<lrn1986@gmail.com>
Tue, 5 Aug 2014 06:44:01 +0000
(06:44 +0000)
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
patch
|
blob
|
history
diff --git
a/glib/gspawn-win32.c
b/glib/gspawn-win32.c
index
2acbde3
..
d98aba1
100644
(file)
--- 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 (GetConsole
CursorInfo (GetStdHandle (STD_OUTPUT_HANDLE), &cursor_info)
)
+ if (GetConsole
Window () != NULL
)
helper_process = HELPER_PROCESS "-console.exe";
else
helper_process = HELPER_PROCESS ".exe";