diff options
Diffstat (limited to 'CPP/7zip/Archive/ArchiveExports.cpp')
-rwxr-xr-x | CPP/7zip/Archive/ArchiveExports.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CPP/7zip/Archive/ArchiveExports.cpp b/CPP/7zip/Archive/ArchiveExports.cpp index 5dcf9806..c7908b59 100755 --- a/CPP/7zip/Archive/ArchiveExports.cpp +++ b/CPP/7zip/Archive/ArchiveExports.cpp @@ -85,6 +85,7 @@ STDAPI CreateArchiver(const GUID *clsid, const GUID *iid, void **outObject) STDAPI GetHandlerProperty2(UInt32 formatIndex, PROPID propID, PROPVARIANT *value) { + COM_TRY_BEGIN if (formatIndex >= g_NumArcs) return E_INVALIDARG; const CArcInfo &arc = *g_Arcs[formatIndex]; @@ -119,6 +120,7 @@ STDAPI GetHandlerProperty2(UInt32 formatIndex, PROPID propID, PROPVARIANT *value } prop.Detach(value); return S_OK; + COM_TRY_END } STDAPI GetHandlerProperty(PROPID propID, PROPVARIANT *value) |