Sebastian Lackner : ntdll: Set proper ExceptionInformation[0] for x86_64 exceptions.

Alexandre Julliard julliard at winehq.org
Tue Mar 27 16:08:49 CDT 2018


Module: wine
Branch: master
Commit: 19a3bb27256611bea77aba70fc7561eba48b7325
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=19a3bb27256611bea77aba70fc7561eba48b7325

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Mon Mar 26 18:57:32 2018 -0500

ntdll: Set proper ExceptionInformation[0] for x86_64 exceptions.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/signal_x86_64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/signal_x86_64.c b/dlls/ntdll/signal_x86_64.c
index efbcc6e..952b1a4 100644
--- a/dlls/ntdll/signal_x86_64.c
+++ b/dlls/ntdll/signal_x86_64.c
@@ -2884,7 +2884,7 @@ static void segv_handler( int signal, siginfo_t *siginfo, void *sigcontext )
     case TRAP_x86_PAGEFLT:  /* Page fault */
         rec->ExceptionCode = EXCEPTION_ACCESS_VIOLATION;
         rec->NumberParameters = 2;
-        rec->ExceptionInformation[0] = (ERROR_sig(ucontext) & 2) != 0;
+        rec->ExceptionInformation[0] = (ERROR_sig(ucontext) >> 1) & 0x09;
         rec->ExceptionInformation[1] = (ULONG_PTR)siginfo->si_addr;
         break;
     case TRAP_x86_ALIGNFLT:  /* Alignment check exception */




More information about the wine-cvs mailing list