Rob Saccoccio wrote:
The HANDLE members in the STARTUPINFO struct used in the call to
CreateProcess() aren't currently initialized properly...

--rob

Commited Thanks Rob.




diff -u -r1.80 proc.c
--- proc.c      5 Jul 2002 17:58:10 -0000       1.80
+++ proc.c      18 Jul 2002 04:31:54 -0000
@@ -590,6 +590,10 @@

         memset(&si, 0, sizeof(si));
         si.cb = sizeof(si);
+        si.hStdInput = INVALID_HANDLE_VALUE;
+        si.hStdOutput = INVALID_HANDLE_VALUE;
+        si.hStdError = INVALID_HANDLE_VALUE;
+
         if (attr->detached) {
             si.dwFlags |= STARTF_USESHOWWINDOW;
             si.wShowWindow = SW_HIDE;






Reply via email to