Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b2d00c3

Browse files
committed
Merge pull request #1701 from janvorli/fix-osx-hardware-exceptions-2
Add missing file to the previous hardware exceptions fix
2 parents 1f21a82 + f4ba381 commit b2d00c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pal/src/exception/machexception.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ catch_exception_raise(
981981
FramePointer[0] = pContext;
982982
FramePointer[1] = pExceptionRecord;
983983
// Place the return address to right after the fake call in PAL_DispatchExceptionWrapper
984-
FramePointer[-1] = (void *)((ULONG_PTR)PAL_DispatchExceptionWrapper + 6);
984+
FramePointer[-1] = (void *)((ULONG_PTR)PAL_DispatchExceptionWrapper + PAL_DispatchExceptionReturnOffset);
985985

986986
// Make the instruction register point to DispatchException
987987
ThreadState.__rip = (SIZE_T)PAL_DispatchException;

0 commit comments

Comments
 (0)