mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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
This commit is contained in:
parent
4f73487300
commit
14f2376c8a
@ -590,7 +590,7 @@ do_spawn_with_pipes (gint *exit_status,
|
|||||||
goto cleanup_and_fail;
|
goto cleanup_and_fail;
|
||||||
|
|
||||||
new_argv = g_new (char *, argc + 1 + ARG_COUNT);
|
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";
|
helper_process = HELPER_PROCESS "-console.exe";
|
||||||
else
|
else
|
||||||
helper_process = HELPER_PROCESS ".exe";
|
helper_process = HELPER_PROCESS ".exe";
|
||||||
|
Loading…
Reference in New Issue
Block a user