[project @ 2001-07-03 16:52:45 by rrt]
authorrrt <unknown>
Tue, 3 Jul 2001 16:52:45 +0000 (16:52 +0000)
committerrrt <unknown>
Tue, 3 Jul 2001 16:52:45 +0000 (16:52 +0000)
Allow child process to inherit parent's handles.

ghc/InstallShield/runexe.c

index e55845d..c1becfb 100644 (file)
@@ -46,7 +46,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmd
   if (strlen(lpszCmdParam) == 0) die("no parameters given");
   warn("cwd: %s\n", buf);
   warn("runexing >>>%s<<<\n", lpszCmdParam);
-  if (!CreateProcess(NULL, lpszCmdParam, NULL, NULL, FALSE, 0, NULL, NULL, &sInfo, &pInfo))
+  if (!CreateProcess(NULL, lpszCmdParam, NULL, NULL, TRUE, 0, NULL, NULL, &sInfo, &pInfo))
     die("could not create process");
 
   WaitForSingleObject(pInfo.hProcess, INFINITE);