diff options
Diffstat (limited to 'CPP/7zip/UI/Agent/Agent.cpp')
-rw-r--r-- | CPP/7zip/UI/Agent/Agent.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CPP/7zip/UI/Agent/Agent.cpp b/CPP/7zip/UI/Agent/Agent.cpp index 31c91e29..cdb0e5d1 100644 --- a/CPP/7zip/UI/Agent/Agent.cpp +++ b/CPP/7zip/UI/Agent/Agent.cpp @@ -1887,23 +1887,23 @@ STDMETHODIMP CAgent::GetArcProp(UInt32 level, PROPID propID, PROPVARIANT *value) break; case kpidErrorFlags: { - UInt32 flags = arc.ErrorInfo.GetErrorFlags(); + const UInt32 flags = arc.ErrorInfo.GetErrorFlags(); if (flags != 0) prop = flags; break; } case kpidWarningFlags: { - UInt32 flags = arc.ErrorInfo.GetWarningFlags(); + const UInt32 flags = arc.ErrorInfo.GetWarningFlags(); if (flags != 0) prop = flags; break; } case kpidOffset: { - Int64 v = arc.GetGlobalOffset(); + const Int64 v = arc.GetGlobalOffset(); if (v != 0) - prop = v; + prop.Set_Int64(v); break; } case kpidTailSize: |