From c1f7196a3b1d069248c8155e593b53ae44b24c62 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 22 Aug 2000 08:28:24 +0000 Subject: 2000-08-22 Ross Johnson * private.c (ptw32_throw): Fix exception test; move exceptionInformation declaration. * tsd.c (pthread_key_create): newkey wrongly declared. * pthread.h: Fix comment block. --- private.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'private.c') 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); -- cgit v1.2.3