Commit 2bfe47e8 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Use NtSetContextThread in NtRaiseException.

parent d2ad6f83
...@@ -77,8 +77,6 @@ static RTL_CRITICAL_SECTION vectored_handlers_section = { &critsect_debug, -1, 0 ...@@ -77,8 +77,6 @@ static RTL_CRITICAL_SECTION vectored_handlers_section = { &critsect_debug, -1, 0
# error You must define GET_IP for this CPU # error You must define GET_IP for this CPU
#endif #endif
extern void DECLSPEC_NORETURN __wine_call_from_32_restore_regs( const CONTEXT *context );
/******************************************************************* /*******************************************************************
* EXC_RaiseHandler * EXC_RaiseHandler
* *
...@@ -369,9 +367,7 @@ static NTSTATUS raise_exception( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL f ...@@ -369,9 +367,7 @@ static NTSTATUS raise_exception( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL f
NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL first_chance ) NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL first_chance )
{ {
NTSTATUS status = raise_exception( rec, context, first_chance ); NTSTATUS status = raise_exception( rec, context, first_chance );
#ifdef DEFINE_REGS_ENTRYPOINT if (status == STATUS_SUCCESS) NtSetContextThread( GetCurrentThread(), context );
if (status == STATUS_SUCCESS) __wine_call_from_32_restore_regs( context );
#endif
return status; return status;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment