mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[PSEH]
When we use the dummy PSEH, use an if (ExternalVariable) around the except block. This is to make Coverity check the except handler as well and take into account that it could be executed. svn path=/trunk/; revision=63092
This commit is contained in:
parent
b1e9d59ae3
commit
011d8212a2
2 changed files with 7 additions and 2 deletions
|
@ -39,12 +39,15 @@
|
|||
|
||||
#elif defined(_USE_DUMMY_PSEH) || defined (__arm__) || defined(__clang__) || defined(_M_AMD64)
|
||||
|
||||
extern int _SEH2_Volatile0;
|
||||
extern int _SEH2_VolatileExceptionCode;
|
||||
|
||||
#define _SEH2_TRY {
|
||||
#define _SEH2_FINALLY } {
|
||||
#define _SEH2_EXCEPT(...) } if (0) {
|
||||
#define _SEH2_EXCEPT(...) } if (_SEH2_Volatile0) {
|
||||
#define _SEH2_END }
|
||||
#define _SEH2_GetExceptionInformation()
|
||||
#define _SEH2_GetExceptionCode() 0
|
||||
#define _SEH2_GetExceptionCode() _SEH2_VolatileExceptionCode
|
||||
#define _SEH2_AbnormalTermination()
|
||||
#define _SEH2_YIELD(STMT_) STMT_
|
||||
#define _SEH2_LEAVE
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
/* intentionally empty file */
|
||||
|
||||
int _SEH2_Volatile0 = 0;
|
||||
int _SEH2_VolatileExceptionCode = 0xC0000005;
|
||||
|
|
Loading…
Reference in a new issue