Terminate process on unhandled ^C exception instead of launching the

debugger.
This commit is contained in:
Alexandre Julliard 2001-03-20 02:01:10 +00:00
parent 27398d4966
commit 857abbf398
1 changed files with 5 additions and 0 deletions

View File

@ -201,6 +201,11 @@ DWORD WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS epointers)
TerminateProcess( GetCurrentProcess(), epointers->ExceptionRecord->ExceptionCode ); TerminateProcess( GetCurrentProcess(), epointers->ExceptionRecord->ExceptionCode );
break; /* not reached */ break; /* not reached */
case 0: /* no debugger is present */ case 0: /* no debugger is present */
if (epointers->ExceptionRecord->ExceptionCode == CONTROL_C_EXIT)
{
/* do not launch the debugger on ^C, simply terminate the process */
TerminateProcess( GetCurrentProcess(), 1 );
}
break; break;
default: default:
FIXME("Unsupported yet debug continue value %d (please report)\n", status); FIXME("Unsupported yet debug continue value %d (please report)\n", status);