summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/lzma/CPP/Common/ComTry.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/lzma/CPP/Common/ComTry.h')
-rw-r--r--3rdparty/lzma/CPP/Common/ComTry.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/3rdparty/lzma/CPP/Common/ComTry.h b/3rdparty/lzma/CPP/Common/ComTry.h
index fb4ef04594a..84746a7d084 100644
--- a/3rdparty/lzma/CPP/Common/ComTry.h
+++ b/3rdparty/lzma/CPP/Common/ComTry.h
@@ -1,7 +1,7 @@
// ComTry.h
-#ifndef __COM_TRY_H
-#define __COM_TRY_H
+#ifndef ZIP7_INC_COM_TRY_H
+#define ZIP7_INC_COM_TRY_H
#include "MyWindows.h"
// #include "Exception.h"
@@ -10,7 +10,11 @@
#define COM_TRY_BEGIN try {
#define COM_TRY_END } catch(...) { return E_OUTOFMEMORY; }
- // catch(const CNewException &) { return E_OUTOFMEMORY; }
+/*
+#define COM_TRY_END } \
+ catch(const CNewException &) { return E_OUTOFMEMORY; } \
+ catch(...) { return HRESULT_FROM_WIN32(ERROR_NOACCESS); } \
+*/
// catch(const CSystemException &e) { return e.ErrorCode; }
// catch(...) { return E_FAIL; }