summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-05 09:38:13 +0200
committerGitHub <noreply@github.com>2019-07-05 09:38:13 +0200
commit44ea7ed58353fd800493f5ad6ed99f1a121194f5 (patch)
tree6b0dc0bd0a1d58284647ad42b5647f25d4a78898 /platform
parent42a0148f1799b82cc4b07de6ca5a1e66d6a76be2 (diff)
parent4a58c0487ad687830fd5ddee2cf8191759432845 (diff)
Merge pull request #26674 from hunte922/master
Hide command prompt launched by OS.execute
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/os_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index e535f6a148..0a9cfc0214 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -2586,7 +2586,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
modstr.resize(cmdline.size());
for (int i = 0; i < cmdline.size(); i++)
modstr.write[i] = cmdline[i];
- int ret = CreateProcessW(NULL, modstr.ptrw(), NULL, NULL, 0, NORMAL_PRIORITY_CLASS, NULL, NULL, si_w, &pi.pi);
+ int ret = CreateProcessW(NULL, modstr.ptrw(), NULL, NULL, 0, NORMAL_PRIORITY_CLASS & CREATE_NO_WINDOW, NULL, NULL, si_w, &pi.pi);
ERR_FAIL_COND_V(ret == 0, ERR_CANT_FORK);
if (p_blocking) {