ref: 55789cf12de42cc893bd903f84435ed90015dd4a
parent: a034c665c088904d9061e13cf73f5de33ef2268b
author: Simon Howard <fraggle@gmail.com>
date: Sun Oct 4 19:38:14 EDT 2009
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
--- a/setup/execute.c
+++ b/setup/execute.c
@@ -232,6 +232,7 @@
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 @@
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;
}