diff options
-rw-r--r-- | setup/execute.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/setup/execute.c b/setup/execute.c index 03a4f65c..ae23bf2e 100644 --- a/setup/execute.c +++ b/setup/execute.c @@ -232,6 +232,7 @@ static wchar_t *GetPaddedWideArg(const char *arg) static int ExecuteCommand(const char *program, const char *arg) { + STARTUPINFOW startup_info; PROCESS_INFORMATION proc_info; wchar_t *exe_path; wchar_t *warg; @@ -245,8 +246,8 @@ static int ExecuteCommand(const char *program, const char *arg) memset(&proc_info, 0, sizeof(proc_info)); if (!CreateProcessW(exe_path, warg, - NULL, NULL, FALSE, 0, NULL, NULL, NULL, - &proc_info)) + NULL, NULL, FALSE, 0, NULL, NULL, + &startup_info, &proc_info)) { result = -1; } |