Commit 386d51d1 authored by Juraj Hercek's avatar Juraj Hercek Committed by Alexandre Julliard

Fixed bug in context registers, added HANDLER_DEF and HANDLER_CONTEXT

macros.
parent 727c31d7
......@@ -42,6 +42,9 @@
WINE_DEFAULT_DEBUG_CHANNEL(seh);
#define HANDLER_DEF(name) void name( int __signal, struct siginfo *__siginfo, ucontext_t *__context )
#define HANDLER_CONTEXT (__context)
typedef int (*wine_signal_handler)(unsigned int sig);
static wine_signal_handler handlers[256];
......@@ -357,7 +360,7 @@ static HANDLER_DEF(abrt_handler)
rec.ExceptionCode = EXCEPTION_WINE_ASSERTION;
rec.ExceptionFlags = EH_NONCONTINUABLE;
rec.ExceptionRecord = NULL;
rec.ExceptionAddress = (LPVOID)context.Eip;
rec.ExceptionAddress = (LPVOID)context.pc;
rec.NumberParameters = 0;
EXC_RtlRaiseException( &rec, &context ); /* Should never return.. */
restore_context( &context, HANDLER_CONTEXT );
......
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