diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2018-03-12 14:19:17 +0300 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2018-03-12 14:19:46 +0300 |
commit | f19b649c73cd8b74c4e0b8a3a728a82c6bda47b4 (patch) | |
tree | 3725026df472886583a019239ed169e356ce1f63 /CPP/7zip/UI/Agent | |
parent | 866a06f5a0c0ede11979504a318e150030aa7a11 (diff) |
18.0318.03
Diffstat (limited to 'CPP/7zip/UI/Agent')
-rw-r--r-- | CPP/7zip/UI/Agent/Agent.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CPP/7zip/UI/Agent/Agent.h b/CPP/7zip/UI/Agent/Agent.h index 7ba96f4a..f7d7b5e4 100644 --- a/CPP/7zip/UI/Agent/Agent.h +++ b/CPP/7zip/UI/Agent/Agent.h @@ -253,8 +253,8 @@ public: IInArchive *GetArchive() const { if ( _archiveLink.Arcs.IsEmpty()) return 0; return GetArc().Archive; } bool CanUpdate() const; - bool Is_Attrib_ReadOnly() const - { + bool Is_Attrib_ReadOnly() const + { return _attrib != INVALID_FILE_ATTRIBUTES && (_attrib & FILE_ATTRIBUTE_READONLY); } |