Reverting part of r40006 that introduced a regression (Arch Blackmann HAS been committing to mingw-w64). A real fix, if this is hiding a bug elsewhere, will have to wait until a proper vendor drop of mingw-w64

svn path=/trunk/; revision=41801
This commit is contained in:
KJK::Hyperion
2009-07-08 00:48:05 +00:00
parent 453d1d9077
commit 1aef6c7fa4
+4 -2
View File
@@ -88,7 +88,7 @@ static _startupinfo startinfo;
extern void _pei386_runtime_relocator (void);
static long CALLBACK _gnu_exception_handler (EXCEPTION_POINTERS * exception_data);
static LONG __mingw_vex(EXCEPTION_POINTERS * exception_data);
//static LONG __mingw_vex(EXCEPTION_POINTERS * exception_data);
#ifdef WPRFLAG
static void duplicate_ppstrings (int ac, wchar_t ***av);
#else
@@ -216,7 +216,7 @@ __tmainCRTStartup (void)
#if defined(__i386__) || defined(_M_IX86)
__writefsdword(0, 0xffffffff);
#endif
AddVectoredExceptionHandler (0, (PVECTORED_EXCEPTION_HANDLER)__mingw_vex);
//AddVectoredExceptionHandler (0, (PVECTORED_EXCEPTION_HANDLER)__mingw_vex);
SetUnhandledExceptionFilter (_gnu_exception_handler);
_fpreset ();
@@ -402,6 +402,7 @@ _gnu_exception_handler (EXCEPTION_POINTERS * exception_data)
return action;
}
#if 0
static LONG __mingw_vex(EXCEPTION_POINTERS * exception_data)
{
/* TODO this is not chainablem, therefore need rewrite. Disabled the ill code. */
@@ -426,6 +427,7 @@ static LONG __mingw_vex(EXCEPTION_POINTERS * exception_data)
#endif
return _gnu_exception_handler(exception_data);
}
#endif
#ifdef WPRFLAG