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;
|
if (!rec.ExceptionCode) return;
|
||||||
break;
|
break;
|
||||||
case TRAP_x86_ALIGNFLT: /* Alignment check exception */
|
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;
|
rec.ExceptionCode = EXCEPTION_DATATYPE_MISALIGNMENT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue