Module: wine Branch: master Commit: 4ce9af2ba54169eced3243664ca976e383a65e71 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ce9af2ba54169eced3243664c...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Mar 20 11:50:07 2008 +0100
ntdll: Clear the direction flag before calling exception handlers.
---
dlls/ntdll/signal_i386.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c index 2cb59f5..bb8332a 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();