ntdll: Ignore faults caused by alignment check on x86-64.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ef1247d77a
commit
c0012ecdd7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue