ntdll: Ignore faults caused by alignment check on x86-64.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-06-18 13:49:03 +02:00
parent ef1247d77a
commit c0012ecdd7
1 changed files with 5 additions and 0 deletions

View File

@ -2280,6 +2280,11 @@ static void segv_handler( int signal, siginfo_t *siginfo, void *sigcontext )
if (!rec.ExceptionCode) return;
break;
case TRAP_x86_ALIGNFLT: /* Alignment check exception */
if (EFL_sig(ucontext) & 0x00040000)
{
EFL_sig(ucontext) &= ~0x00040000; /* reset AC flag */
return;
}
rec.ExceptionCode = EXCEPTION_DATATYPE_MISALIGNMENT;
break;
default: