Hi, Just minor fixes and adjustments. ChangeLog: * Juraj Hercek <juraj@syncad.com> - dlls/ntdll/signal_sparc.c: Fixed bug in context registers, added HANDLER_DEF and HANDLER_CONTEXT macros. - include/custcntl.h: Added WINELIB_NAME_AW for LPCCINFO. Regards ;o), Juraj
Index: dlls/ntdll/signal_sparc.c =================================================================== RCS file: /home/wine/wine/dlls/ntdll/signal_sparc.c,v retrieving revision 1.20 diff -u -r1.20 signal_sparc.c --- dlls/ntdll/signal_sparc.c 28 Oct 2002 23:56:58 -0000 1.20 +++ dlls/ntdll/signal_sparc.c 7 Nov 2002 09:40:54 -0000 @@ -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 @@ 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 );
Index: include/custcntl.h =================================================================== RCS file: /home/wine/wine/include/custcntl.h,v retrieving revision 1.1 diff -u -r1.1 custcntl.h --- include/custcntl.h 29 Sep 2002 18:04:15 -0000 1.1 +++ include/custcntl.h 7 Nov 2002 09:33:27 -0000 @@ -120,6 +120,8 @@ #define LPFNCCINFO WINELIB_NAME_AW(LPFNCCINFO) +#define LPCCINFO WINELIB_NAME_AW(LPCCINFO) + #ifdef __cplusplus } #endif