Browse Source

The PipeStream will close the handle

Martin 1 year ago
parent
commit
481f0efe94
1 changed files with 1 additions and 0 deletions
  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;