aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/libgcc/unwind-seh.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/libgcc/unwind-seh.c')
-rw-r--r--gcc-4.8/libgcc/unwind-seh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc-4.8/libgcc/unwind-seh.c b/gcc-4.8/libgcc/unwind-seh.c
index 54a86213f..9fd5e850d 100644
--- a/gcc-4.8/libgcc/unwind-seh.c
+++ b/gcc-4.8/libgcc/unwind-seh.c
@@ -313,8 +313,9 @@ _GCC_specific_handler (PEXCEPTION_RECORD ms_exc, void *this_frame,
ms_exc->ExceptionInformation[3] = gcc_context.reg[1];
/* Begin phase 2. Perform the unwinding. */
- RtlUnwindEx (this_frame, gcc_context.ra, ms_exc, gcc_exc,
- ms_orig_context, ms_disp->HistoryTable);
+ RtlUnwindEx (this_frame, gcc_context.ra, ms_exc,
+ (PVOID)gcc_context.reg[0], ms_orig_context,
+ ms_disp->HistoryTable);
}
/* In _Unwind_RaiseException we return _URC_FATAL_PHASE1_ERROR. */