mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
ntdll: Clear the direction flag before calling exception handlers.
This commit is contained in:
parent
4603f4edfa
commit
4ce9af2ba5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user