mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 11:59:19 +02:00
* fixed exceptionhandling scanner (2nd attempt to load file was not in an try..except). Bug reported on German laz forum
git-svn-id: trunk@16333 -
This commit is contained in:
parent
9248019e12
commit
1beef3f3f5
@ -501,8 +501,12 @@ begin
|
|||||||
if BaseDirectory<>'' then
|
if BaseDirectory<>'' then
|
||||||
begin
|
begin
|
||||||
FN:=SearchLowUpCase(BaseDirectory+AName);
|
FN:=SearchLowUpCase(BaseDirectory+AName);
|
||||||
If (FN<>'') then
|
try
|
||||||
|
If (FN<>'') then
|
||||||
Result := TFileLineReader.Create(FN);
|
Result := TFileLineReader.Create(FN);
|
||||||
|
except
|
||||||
|
Result:=nil;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user