summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorSimon Howard2009-10-04 23:38:14 +0000
committerSimon Howard2009-10-04 23:38:14 +0000
commit55789cf12de42cc893bd903f84435ed90015dd4a (patch)
tree52f0097985d2147f024cc905e21432fac9fd8d6e /setup
parenta034c665c088904d9061e13cf73f5de33ef2268b (diff)
downloadchocolate-doom-55789cf12de42cc893bd903f84435ed90015dd4a.tar.gz
chocolate-doom-55789cf12de42cc893bd903f84435ed90015dd4a.tar.bz2
chocolate-doom-55789cf12de42cc893bd903f84435ed90015dd4a.zip
Provide pointer to STARTUPINFO structure when calling CreateProcessW, to
stop crash under normal Windows (not CE) when launching Doom from the setup tools (thanks Janizdreg). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1709
Diffstat (limited to 'setup')
-rw-r--r--setup/execute.c5
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;
}