[PATCH v2 1/2] ntdll: Fix KiUserExceptionDispatcher ABI on x86.

Alexandre Julliard julliard at winehq.org
Fri Jul 3 04:59:26 CDT 2020


Paul Gofman <pgofman at 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 at winehq.org



More information about the wine-devel mailing list