G_SPAWN_WIN32_HIDDEN_CONSOLE

This commit is contained in:
Yevgen Muntyan 2017-11-11 15:51:29 -08:00
parent f8d8e5141b
commit 6a4b09d219
4 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ run_command (const char *command_template,
error = NULL;
}
if (command && !moo_spawn_command_line_async_with_flags (command, MOO_SPAWN_WIN32_HIDDEN_CONSOLE, &error))
if (command && !moo_spawn_command_line_async_with_flags (command, G_SPAWN_WIN32_HIDDEN_CONSOLE, &error))
{
g_warning ("%s", moo_error_message (error));
g_error_free (error);

View File

@ -120,7 +120,7 @@ cfunc__execute (lua_State *L)
}
if (!g_spawn_sync (NULL, argv, NULL,
(GSpawnFlags) (G_SPAWN_SEARCH_PATH | MOO_SPAWN_WIN32_HIDDEN_CONSOLE),
(GSpawnFlags) (G_SPAWN_SEARCH_PATH | G_SPAWN_WIN32_HIDDEN_CONSOLE),
NULL, NULL, NULL, NULL,
&exit_status, &error))
{

View File

@ -530,7 +530,7 @@ moo_cmd_run_command (MooCmd *cmd,
else
#endif
{
flags |= MOO_SPAWN_WIN32_HIDDEN_CONSOLE;
flags |= G_SPAWN_WIN32_HIDDEN_CONSOLE;
if ((flags & G_SPAWN_STDOUT_TO_DEV_NULL) || (cmd_flags & MOO_CMD_STDOUT_TO_PARENT))
outp = NULL;

View File

@ -546,7 +546,7 @@ run_sync (const char *base_cmd_line,
{
GError *error = NULL;
gboolean result = FALSE;
GSpawnFlags flags = (GSpawnFlags) (RUN_CMD_FLAGS | MOO_SPAWN_WIN32_HIDDEN_CONSOLE);
GSpawnFlags flags = (GSpawnFlags) (RUN_CMD_FLAGS | G_SPAWN_WIN32_HIDDEN_CONSOLE);
char **argv;
char **real_env;
char *cmd_line;