ntdll/tests: Make sure to clear the DF flag on return from the exception.
This commit is contained in:
parent
13e609fdb3
commit
bb4119e1fd
|
@ -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" );
|
ok( context->EFlags & 0x400, "context eflags has DF bit cleared\n" );
|
||||||
got_exception++;
|
got_exception++;
|
||||||
context->Eip++; /* skip cli */
|
context->Eip++; /* skip cli */
|
||||||
|
context->EFlags &= ~0x400; /* make sure it is cleared on return */
|
||||||
return ExceptionContinueExecution;
|
return ExceptionContinueExecution;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue