kernel32: Terminate process in unhandled exception handler.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-07-04 13:37:45 +02:00 committed by Alexandre Julliard
parent 3fded30a10
commit 4f1185d21e
2 changed files with 3 additions and 1 deletions

View File

@ -1260,7 +1260,7 @@ void WINAPI start_process( LPTHREAD_START_ROUTINE entry, PEB *peb )
}
__EXCEPT(UnhandledExceptionFilter)
{
TerminateThread( GetCurrentThread(), GetExceptionCode() );
TerminateProcess( GetCurrentProcess(), GetExceptionCode() );
}
__ENDTRY
abort(); /* should not be reached */

View File

@ -185,6 +185,8 @@ static void doCrash(int argc, char** argv)
SetErrorMode( 0 );
SetUnhandledExceptionFilter( NULL );
run_background_thread();
if (argc >= 4)
{
crash_blackbox_t blackbox;