diff options
Diffstat (limited to 'private.c')
-rw-r--r-- | private.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -824,7 +824,13 @@ ptw32_get_exception_services_code(void) void ptw32_throw(DWORD exception) { - if (exception != PTW32_EPS_CANCEL || +#if defined(_MSC_VER) && !defined(__cplusplus) + + DWORD exceptionInformation[3]; + +#endif + + if (exception != PTW32_EPS_CANCEL && exception != PTW32_EPS_EXIT) { /* Should never enter here */ @@ -833,8 +839,6 @@ ptw32_throw(DWORD exception) #if defined(_MSC_VER) && !defined(__cplusplus) - DWORD exceptionInformation[3]; - exceptionInformation[0] = (DWORD) (exception); exceptionInformation[1] = (DWORD) (0); exceptionInformation[2] = (DWORD) (0); |