浏览代码

The PipeStream will close the handle

Martin 2 年之前
父节点
当前提交
481f0efe94
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/fcl-process/src/processbody.inc

+ 1 - 0
packages/fcl-process/src/processbody.inc

@@ -1052,6 +1052,7 @@ begin
       phtOutput : FStream:=TInputPipeStream.Create(OurHandle);
     end;
     end;
+  FOurHandle:=THandle(INVALID_HANDLE_VALUE);
   Result:=FStream;
 end;