[PATCH] clear alignment check flag before entering exceptionhandler

Marcus Meissner marcus at jet.franken.de
Mon Oct 2 15:16:26 CDT 2006


Hi,

Also clear the alignment check flag before returning from the signal
handler to the actual exception handling code.

Ciao, Marcus

---

 dlls/ntdll/signal_i386.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

f6095791a5f6003cdd1a0eadec05ce48a1ed8790
diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c
index 21d4d24..e616f50 100644
--- a/dlls/ntdll/signal_i386.c
+++ b/dlls/ntdll/signal_i386.c
@@ -924,7 +924,8 @@ static EXCEPTION_RECORD *setup_exception
     /* now modify the sigcontext to return to the raise function */
     ESP_sig(sigcontext) = (DWORD)stack;
     EIP_sig(sigcontext) = (DWORD)func;
-    EFL_sig(sigcontext) &= ~0x100;  /* clear single-step flag */
+    /* clear single-step and align check flag */
+    EFL_sig(sigcontext) &= ~(0x100|0x40000); 
     CS_sig(sigcontext)  = wine_get_cs();
     DS_sig(sigcontext)  = wine_get_ds();
     ES_sig(sigcontext)  = wine_get_es();
-- 
1.2.4



More information about the wine-patches mailing list