mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Links handling in WFX plugins
This commit is contained in:
parent
7e8e3178bb
commit
df5a1200df
3 changed files with 5 additions and 3 deletions
|
|
@ -468,7 +468,7 @@ begin
|
|||
begin
|
||||
Connection := TConnection(ConnectionList.Objects[I - RootCount]);
|
||||
StrPCopy(FindData.cFileName, Connection.ConnectionName);
|
||||
FindData.dwFileAttributes := FILE_ATTRIBUTE_REPARSE_POINT;
|
||||
FindData.dwFileAttributes := FILE_ATTRIBUTE_NORMAL;
|
||||
Inc(ListRec^.Index);
|
||||
Result := True;
|
||||
end;
|
||||
|
|
|
|||
|
|
@ -178,6 +178,7 @@ const
|
|||
|
||||
const
|
||||
MAXDWORD = DWORD($FFFFFFFF);
|
||||
FILE_ATTRIBUTE_NORMAL = 128;
|
||||
FILE_ATTRIBUTE_DIRECTORY = 16;
|
||||
FILE_ATTRIBUTE_REPARSE_POINT = $0400;
|
||||
FILE_ATTRIBUTE_UNIX_MODE = $80000000;
|
||||
|
|
|
|||
|
|
@ -116,7 +116,8 @@ begin
|
|||
end
|
||||
else // Unix attributes
|
||||
begin
|
||||
FIsLinkToDirectory := ((FindData.FileAttributes and FILE_ATTRIBUTE_DIRECTORY) <> 0) and
|
||||
FIsLinkToDirectory := (((FindData.FileAttributes and FILE_ATTRIBUTE_DIRECTORY) <> 0) or
|
||||
((FindData.FileAttributes and FILE_ATTRIBUTE_REPARSE_POINT) <> 0)) and
|
||||
((FindData.Reserved0 and S_IFMT) = S_IFLNK);
|
||||
if ((FindData.FileAttributes and FILE_ATTRIBUTE_DIRECTORY) <> 0) and
|
||||
((FindData.Reserved0 and S_IFMT) <> S_IFDIR) then
|
||||
|
|
@ -235,4 +236,4 @@ begin
|
|||
end;
|
||||
|
||||
end.
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue