mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-15 09:02:50 +02:00
codetools: runtool: check workingdir
git-svn-id: trunk@42331 -
This commit is contained in:
parent
596019d5da
commit
a5e24441da
@ -1228,7 +1228,11 @@ var
|
||||
OutLen: Integer;
|
||||
LineStart, i: Integer;
|
||||
begin
|
||||
if not FileIsExecutable(Filename) then exit(nil);
|
||||
Result:=nil;
|
||||
if not FileIsExecutable(Filename) then
|
||||
exit(nil);
|
||||
if (WorkingDirectory<>'') and not DirPathExists(WorkingDirectory) then
|
||||
exit(nil);
|
||||
Result:=TStringList.Create;
|
||||
try
|
||||
buf:='';
|
||||
|
Loading…
Reference in New Issue
Block a user