Explorar o código

+ Fixed PeekExitStatus

michael %!s(int64=21) %!d(string=hai) anos
pai
achega
29bae36989
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;