summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
Diffstat (limited to 'private.c')
-rw-r--r--private.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/private.c b/private.c
index 905a7f6..37cb910 100644
--- a/private.c
+++ b/private.c
@@ -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);