浏览代码

BUG: Process startup-info struct dwFlags were being set incorrectly due to a change in statement order.

Brad King 22 年之前
父节点
当前提交
9ce4e23715
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/kwsys/ProcessWin32.c

+ 1 - 1
Source/kwsys/ProcessWin32.c

@@ -821,7 +821,7 @@ void kwsysProcess_Execute(kwsysProcess* cp)
     (unsigned short)(cp->HideWindow?SW_HIDE:SW_SHOWDEFAULT);
   
   /* Connect the child's output pipes to the threads.  */
-  si.StartupInfo.dwFlags = STARTF_USESTDHANDLES;
+  si.StartupInfo.dwFlags |= STARTF_USESTDHANDLES;
 
   /* Create stderr pipe to be shared by all processes in the pipeline.
      Neither end is directly inherited.  */