FIX: Warnings

This commit is contained in:
Alexander Koblov 2018-11-12 18:57:12 +00:00
commit 2da88c15bb

View file

@ -809,8 +809,8 @@ end;
function TNtfsFileAttributesProperty.IsSysFile: boolean;
begin
Result := ((FAttributes and faSysFile) <> 0) or
((FAttributes and faHidden) <> 0);
Result := ((FAttributes and FILE_ATTRIBUTE_SYSTEM) <> 0) or
((FAttributes and FILE_ATTRIBUTE_HIDDEN) <> 0);
end;
function TNtfsFileAttributesProperty.IsLink: Boolean;
@ -820,12 +820,12 @@ end;
function TNtfsFileAttributesProperty.IsReadOnly: Boolean;
begin
Result := (FAttributes and faReadOnly) <> 0;
Result := (FAttributes and FILE_ATTRIBUTE_READONLY) <> 0;
end;
function TNtfsFileAttributesProperty.IsHidden: Boolean;
begin
Result := (FAttributes and faHidden) <> 0;
Result := (FAttributes and FILE_ATTRIBUTE_HIDDEN) <> 0;
end;
class function TNtfsFileAttributesProperty.GetDescription: String;