3 Jul
2020
3 Jul
'20
9:59 a.m.
Paul Gofman <pgofman(a)codeweavers.com> writes:
-void WINAPI call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context ) +void *get_KiUserExceptionDispatcher_address(void) { - pKiUserExceptionDispatcher( rec, context ); + return pKiUserExceptionDispatcher; }
+__ASM_GLOBAL_FUNC( call_user_exception_dispatcher, + "add $4,%esp\n\t" + "call " __ASM_NAME("get_KiUserExceptionDispatcher_address") "\n\t" + "jmp *%eax")
That's not very nice. I'd suggest to pass the dispatcher address to call_user_exception_dispatcher(). -- Alexandre Julliard julliard(a)winehq.org