diff options
Diffstat (limited to 'CPP/7zip/UI/Agent/Agent.h')
-rwxr-xr-x | 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 b95725e4..50b101f4 100755 --- a/CPP/7zip/UI/Agent/Agent.h +++ b/CPP/7zip/UI/Agent/Agent.h @@ -206,8 +206,8 @@ public: #endif const CArc &GetArc() { return _archiveLink.Arcs.Back(); } - IInArchive *GetArchive() { return GetArc().Archive; } - bool CanUpdate() const { return _archiveLink.Arcs.Size() == 1; } + IInArchive *GetArchive() { if ( _archiveLink.Arcs.IsEmpty()) return 0; return GetArc().Archive; } + bool CanUpdate() const { return _archiveLink.Arcs.Size() <= 1; } }; #ifdef NEW_FOLDER_INTERFACE |