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

Alexandre Julliard julliard at winehq.org
Thu Jul 2 07:13:20 CDT 2020


Paul Gofman <pgofman at codeweavers.com> writes:

> @@ -243,6 +243,13 @@ NTSTATUS WINAPI KiUserExceptionDispatcher( EXCEPTION_RECORD *rec, CONTEXT *conte
>      return NtRaiseException( rec, context, FALSE );
>  }
>  
> +__ASM_GLOBAL_FUNC( KiUserExceptionDispatcher at 8,

You need to use __ASM_STDCALL_FUNC.

> +__ASM_GLOBAL_FUNC( call_user_exception_dispatcher,
> +                   "add $4,%esp\n\t"
> +                   "jmp *pKiUserExceptionDispatcher\n\t")

You can't access the variable this way for PIC code.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list