소스 검색

* (runcommand), fix for corruption of outputstring if command fails with
an exception. Patch by Ludo #22328

git-svn-id: trunk@21739 -

marco 13 년 전
부모
커밋
b603182f1a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/fcl-process/src/process.pp

+ 1 - 1
packages/fcl-process/src/process.pp

@@ -465,8 +465,8 @@ begin
   try
     try
     p.Options :=  [poUsePipes];
-    p.Execute;
     bytesread:=0;
+    p.Execute;
     while p.Running do
       begin          
         Setlength(outputstring,BytesRead + READ_BYTES);