Alexandre Julliard : ntdll/tests: Make sure to clear the DF flag on return from the exception.

Alexandre Julliard julliard at winehq.org
Mon May 19 16:25:46 CDT 2008


Module: wine
Branch: master
Commit: bb4119e1fdcf87fa5301a1cb3277c31d34ff2c84
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bb4119e1fdcf87fa5301a1cb3277c31d34ff2c84

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon May 19 23:19:24 2008 +0200

ntdll/tests: Make sure to clear the DF flag on return from the exception.

---

 dlls/ntdll/tests/exception.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c
index 0aa880a..8116503 100644
--- a/dlls/ntdll/tests/exception.c
+++ b/dlls/ntdll/tests/exception.c
@@ -503,6 +503,7 @@ static DWORD direction_flag_handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTRATI
     ok( context->EFlags & 0x400, "context eflags has DF bit cleared\n" );
     got_exception++;
     context->Eip++;  /* skip cli */
+    context->EFlags &= ~0x400;  /* make sure it is cleared on return */
     return ExceptionContinueExecution;
 }
 




More information about the wine-cvs mailing list