From 518d6d5dcd7e0775c38613c0e4b4e185cdf93719 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 15 Feb 2018 22:42:37 +0100 Subject: [PATCH] Prevent new window opening with CreateProcess() Executing commands (like "adb push") created a new terminal window on Windows. Avoid it. --- app/src/sys/win/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/sys/win/command.c b/app/src/sys/win/command.c index 4269cf0f..06ecf7c8 100644 --- a/app/src/sys/win/command.c +++ b/app/src/sys/win/command.c @@ -20,7 +20,7 @@ HANDLE cmd_execute(const char *path, const char *const argv[]) { return NULL; } - if (!CreateProcess(NULL, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) { + if (!CreateProcess(NULL, cmd, NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &si, &pi)) { return NULL; }