瀏覽代碼

* pas2jni: Fixed reading of the ppudump's output in some cases.

git-svn-id: trunk@32083 -
yury 9 年之前
父節點
當前提交
ab4c8623ec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/pas2jni/ppuparser.pas

+ 1 - 1
utils/pas2jni/ppuparser.pas

@@ -219,7 +219,7 @@ begin
     repeat
       _ReadOutput(p.Output, s);
       _ReadOutput(p.Stderr, err);
-    until not p.Running;
+    until not p.Running and (p.Output.NumBytesAvailable = 0) and (p.Stderr.NumBytesAvailable = 0);
     ec:=p.ExitStatus;
     if Copy(s, 1, 1) <> '[' then begin
       ec:=-1;