mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 06:38:03 +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;
|
||||
end;
|
||||
US := URec.TargetName;
|
||||
if not FileGetSymlinkTarget(US, URec) then
|
||||
if not TryGetSymlinkTarget(US, URec) then
|
||||
begin
|
||||
if ExceptionOnError then raise EFOpenError.CreateFmt('%s is not a junction or a symbolic link',[Filename]);
|
||||
Result := '';
|
||||
|
Loading…
Reference in New Issue
Block a user