diff options
author | Alberto Gonzalez Iniesta <agi@inittab.org> | 2013-06-03 18:47:54 +0200 |
---|---|---|
committer | Alberto Gonzalez Iniesta <agi@inittab.org> | 2013-06-03 18:47:54 +0200 |
commit | c7f5b684601f45769f7e3252a407be748d1fc2ca (patch) | |
tree | 940368aafbfb471169a19bb16a2275be179d4c5a /src/openvpn/win32.c | |
parent | 31feacd9451b798cb0b29b42298eddaba3f697ee (diff) | |
parent | 70b71e008cc968ee53d6b8af9f7a006f13c27e2a (diff) |
Merge tag 'upstream/2.3.2'
Upstream version 2.3.2
Diffstat (limited to 'src/openvpn/win32.c')
-rw-r--r-- | src/openvpn/win32.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/openvpn/win32.c b/src/openvpn/win32.c index 2db96a8..178e2c3 100644 --- a/src/openvpn/win32.c +++ b/src/openvpn/win32.c @@ -879,7 +879,10 @@ openvpn_execve (const struct argv *a, const struct env_set *es, const unsigned i start_info.dwFlags = STARTF_USESHOWWINDOW; start_info.wShowWindow = SW_HIDE; - if (CreateProcessW (cmd, cl, NULL, NULL, FALSE, 0, env, NULL, &start_info, &proc_info)) + /* this allows console programs to run, and is ignored otherwise */ + DWORD proc_flags = CREATE_NO_WINDOW; + + if (CreateProcessW (cmd, cl, NULL, NULL, FALSE, proc_flags, env, NULL, &start_info, &proc_info)) { DWORD exit_status = 0; CloseHandle (proc_info.hThread); |