Prevent new window opening with CreateProcess()
Executing commands (like "adb push") created a new terminal window on Windows. Avoid it.
This commit is contained in:
parent
e8cad790a4
commit
518d6d5dcd
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ HANDLE cmd_execute(const char *path, const char *const argv[]) {
|
||||||
return NULL;
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue