From f19b649c73cd8b74c4e0b8a3a728a82c6bda47b4 Mon Sep 17 00:00:00 2001 From: Igor Pavlov Date: Mon, 12 Mar 2018 11:19:17 +0000 Subject: 18.03 --- CPP/7zip/UI/Agent/Agent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CPP/7zip/UI/Agent') 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); } -- cgit v1.2.3