소스 검색

* Check running

git-svn-id: trunk@26708 -
michael 11 년 전
부모
커밋
cace38029c
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      packages/fcl-process/src/process.pp

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

@@ -286,7 +286,10 @@ end;
 Function TProcess.GetExitCode : Integer;
 
 begin
-  Result:=GetExitStatus;
+  if Not Running then
+    Result:=GetExitStatus
+  else
+    Result:=0
 end;
 {$ENDIF}