* fix for Mantis #35744: applied patch by Anton Kavalenka to correctly implement FileGetSymLinkTarget

git-svn-id: trunk@42456 -
This commit is contained in:
svenbarth 2019-07-19 15:55:15 +00:00
parent 48b8110e38
commit 48d0ab1af9

View File

@ -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;