mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 21:38:27 +02:00
LazUtils: use TryGetSymlinkTarget consistently in ReadAllLinks on Windows.
(cherry picked from commit 1ba49f1940
)
This commit is contained in:
parent
28f4bcdb5f
commit
89c32c1969
@ -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