IDE: fixed CheckCarbonProc

git-svn-id: trunk@31278 -
This commit is contained in:
mattias 2011-06-19 07:12:08 +00:00
parent b3dbb6e552
commit 700e780dbe

View File

@ -143,11 +143,11 @@ function IsLazarusPIDRunning(aPID: int64): boolean;
s: String;
begin
Result:=false;
if GetProcessForPID(aPid,psn)=noErr then exit;
if GetProcessForPID(aPid,psn)<>noErr then exit;
FillByte(info,SizeOf(info),0);
if GetProcessInformation(psn,info)=noErr then exit;
if GetProcessInformation(psn,info)<>noErr then exit;
processName := nil;
if CopyProcessName(psn, processName)=noErr then exit;
if CopyProcessName(psn, processName)<>noErr then exit;
if processName<>nil then begin
s:=CFStringToStr(processName);
CFRelease(processName);