From bb4119e1fdcf87fa5301a1cb3277c31d34ff2c84 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 19 May 2008 23:19:24 +0200 Subject: [PATCH] ntdll/tests: Make sure to clear the DF flag on return from the exception. --- dlls/ntdll/tests/exception.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c index 0aa880a688..811650365a 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; }