[04/23] ntdll: Fix privileged instruction exception code.
Matteo Bruni
matteo.mystral at gmail.com
Sun Nov 13 16:38:35 CST 2016
2016-11-13 12:35 GMT-06:00 Andrew Wesie <awesie at gmail.com>:
> Signed-off-by: Andrew Wesie <awesie at gmail.com>
> ---
> dlls/ntdll/signal_x86_64.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/dlls/ntdll/signal_x86_64.c b/dlls/ntdll/signal_x86_64.c
> index af16cfd..e2440a6 100644
> --- a/dlls/ntdll/signal_x86_64.c
> +++ b/dlls/ntdll/signal_x86_64.c
> @@ -2652,7 +2652,6 @@ static void segv_handler( int signal, siginfo_t *siginfo, void *sigcontext )
> WORD err = ERROR_sig(ucontext);
> if ((err & 7) == 2 && handle_interrupt( err >> 3, rec, win_context )) break;
> rec->ExceptionCode = err ? EXCEPTION_ACCESS_VIOLATION : EXCEPTION_PRIV_INSTRUCTION;
> - rec->ExceptionCode = EXCEPTION_ACCESS_VIOLATION;
The patch is most likely correct but it would be nice to have a Wine
test triggering this codepath.
More information about the wine-devel
mailing list