mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-24 03:19:34 +02:00
LazUtils: use TryGetSymlinkTarget consistently in ReadAllLinks on Windows.
This commit is contained in:
parent
c16997ba82
commit
1ba49f1940
@ -46,7 +46,7 @@ begin
|
|||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
US := URec.TargetName;
|
US := URec.TargetName;
|
||||||
if not FileGetSymlinkTarget(US, URec) then
|
if not TryGetSymlinkTarget(US, URec) then
|
||||||
begin
|
begin
|
||||||
if ExceptionOnError then raise EFOpenError.CreateFmt('%s is not a junction or a symbolic link',[Filename]);
|
if ExceptionOnError then raise EFOpenError.CreateFmt('%s is not a junction or a symbolic link',[Filename]);
|
||||||
Result := '';
|
Result := '';
|
||||||
|
Loading…
Reference in New Issue
Block a user