mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:29:27 +02:00
* fix for Mantis #35744: applied patch by Anton Kavalenka to correctly implement FileGetSymLinkTarget
git-svn-id: trunk@42456 -
This commit is contained in:
parent
48b8110e38
commit
48d0ab1af9
@ -466,7 +466,7 @@ begin
|
||||
IO_REPARSE_TAG_SYMLINK: begin
|
||||
SymLinkRec.TargetName := WideCharLenToString(
|
||||
@PBuffer^.PathBufferSym[PBuffer^.PrintNameOffset div SizeOf(WCHAR)],
|
||||
PBuffer^.PrintNameOffset div SizeOf(WCHAR));
|
||||
PBuffer^.PrintNameLength div SizeOf(WCHAR));
|
||||
if (PBuffer^.Flags and SYMLINK_FLAG_RELATIVE) <> 0 then
|
||||
SymLinkRec.TargetName := ExpandFileName(ExtractFilePath(FileName) + SymLinkRec.TargetName);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user