소스 검색

+ Fixed PeekExitStatus

michael 21 년 전
부모
커밋
29bae36989
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      fcl/win32/process.inc

+ 2 - 1
fcl/win32/process.inc

@@ -20,7 +20,8 @@ end;
 Function TProcess.PeekExitStatus : Boolean;
 
 begin
-  Result:=GetExitStatus=Still_Active;
+  GetExitCodeProcess(Handle,FExitCode);
+  Result:=(FExitCode=Still_Active);
 end;
 
 Function TProcess.GetHandle : THandle;