ntdll: Use the exception code as exit status when no debugger is present.

This commit is contained in:
Alexandre Julliard 2009-10-13 14:15:27 +02:00
parent d3c482250a
commit 44ed5c0423
3 changed files with 3 additions and 3 deletions

View File

@ -697,7 +697,7 @@ static NTSTATUS raise_exception( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL f
else else
WINE_ERR("Unhandled exception code %x flags %x addr %p\n", WINE_ERR("Unhandled exception code %x flags %x addr %p\n",
rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress ); rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress );
NtTerminateProcess( NtCurrentProcess(), 1 ); NtTerminateProcess( NtCurrentProcess(), rec->ExceptionCode );
} }
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }

View File

@ -674,7 +674,7 @@ static NTSTATUS raise_exception( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL f
else else
ERR("Unhandled exception code %x flags %x addr %p\n", ERR("Unhandled exception code %x flags %x addr %p\n",
rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress ); rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress );
NtTerminateProcess( NtCurrentProcess(), 1 ); NtTerminateProcess( NtCurrentProcess(), rec->ExceptionCode );
} }
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }

View File

@ -225,7 +225,7 @@ static NTSTATUS raise_exception( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL f
else else
ERR("Unhandled exception code %x flags %x addr %p\n", ERR("Unhandled exception code %x flags %x addr %p\n",
rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress ); rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress );
NtTerminateProcess( NtCurrentProcess(), 1 ); NtTerminateProcess( NtCurrentProcess(), rec->ExceptionCode );
} }
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }