From 4ce9af2ba54169eced3243664ca976e383a65e71 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 20 Mar 2008 11:50:07 +0100 Subject: [PATCH] ntdll: Clear the direction flag before calling exception handlers. --- dlls/ntdll/signal_i386.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c index 2cb59f53cc3..bb8332ad7f0 100644 --- a/dlls/ntdll/signal_i386.c +++ b/dlls/ntdll/signal_i386.c @@ -1083,8 +1083,8 @@ static EXCEPTION_RECORD *setup_exception( SIGCONTEXT *sigcontext, raise_func fun /* now modify the sigcontext to return to the raise function */ ESP_sig(sigcontext) = (DWORD)stack; EIP_sig(sigcontext) = (DWORD)func; - /* clear single-step and align check flag */ - EFL_sig(sigcontext) &= ~(0x100|0x40000); + /* clear single-step, direction, and align check flag */ + EFL_sig(sigcontext) &= ~(0x100|0x400|0x40000); CS_sig(sigcontext) = wine_get_cs(); DS_sig(sigcontext) = wine_get_ds(); ES_sig(sigcontext) = wine_get_es(); -- 2.11.4.GIT