mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 16:49:23 +02:00
* correctly copy Size and Attr values when converting from one T*SymLinkRec to the other
git-svn-id: trunk@43108 -
This commit is contained in:
parent
178146f06c
commit
b289805a91
@ -133,6 +133,8 @@ begin
|
||||
if Result then
|
||||
begin
|
||||
SymLinkRec.TargetName := UnicodeString(sr.TargetName);
|
||||
SymLinkRec.Size := sr.Size;
|
||||
SymLinkRec.Attr := sr.Attr;
|
||||
{$ifdef SYMLINKREC_USEFINDDATA}
|
||||
SymLinkRec.FindData := sr.FindData;
|
||||
{$endif}
|
||||
@ -343,6 +345,8 @@ begin
|
||||
if Result then
|
||||
begin
|
||||
SymLinkRec.TargetName := ToSingleByteFileSystemEncodedFileName(sr.TargetName);
|
||||
SymLinkRec.Size := sr.Size;
|
||||
SymLinkRec.Attr := sr.Attr;
|
||||
{$ifdef SYMLINKREC_USEFINDDATA}
|
||||
SymLinkRec.FindData := sr.FindData;
|
||||
{$endif}
|
||||
|
Loading…
Reference in New Issue
Block a user