From b933034111b1a50a05acfa19f8328490d43a038e Mon Sep 17 00:00:00 2001 From: Antonio Linares Date: Fri, 4 Nov 2005 11:32:42 +0000 Subject: [PATCH] UnhandledExceptionFilter renamed as hb_UnhandledExceptionFilter --- harbour/source/vm/mainwin.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/harbour/source/vm/mainwin.c b/harbour/source/vm/mainwin.c index 9a127a0da9..44b9e280fb 100644 --- a/harbour/source/vm/mainwin.c +++ b/harbour/source/vm/mainwin.c @@ -69,6 +69,12 @@ int WINAPI WinMain( HINSTANCE hInstance, /* handle to current instance */ LPSTR lpCmdLine, /* pointer to command line */ int iCmdShow ) /* show state of window */ { + #ifdef HB_INCLUDE_WINEXCHANDLER + LONG WINAPI hb_UnhandledExceptionFilter( struct _EXCEPTION_POINTERS * ExceptionInfo ); + + LPTOP_LEVEL_EXCEPTION_FILTER ef = SetUnhandledExceptionFilter( hb_UnhandledExceptionFilter ); + #endif + LPSTR pArgs = ( LPSTR ) LocalAlloc( LMEM_FIXED, strlen( lpCmdLine ) + 1 ), pArg = pArgs; char szAppName[ 250 ];