mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 19:50:28 +02:00
IDE: fixed CheckCarbonProc
git-svn-id: trunk@31278 -
This commit is contained in:
parent
b3dbb6e552
commit
700e780dbe
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user