diff --git a/lib/CException.h b/lib/CException.h index 32cb617..06ecf52 100644 --- a/lib/CException.h +++ b/lib/CException.h @@ -72,7 +72,7 @@ extern volatile CEXCEPTION_FRAME_T CExceptionFrames[]; { \ jmp_buf *PrevFrame, NewFrame; \ unsigned int MY_ID = CEXCEPTION_GET_ID; \ - PrevFrame = CExceptionFrames[CEXCEPTION_GET_ID].pFrame; \ + PrevFrame = CExceptionFrames[MY_ID].pFrame; \ CExceptionFrames[MY_ID].pFrame = (jmp_buf*)(&NewFrame); \ CExceptionFrames[MY_ID].Exception = CEXCEPTION_NONE; \ CEXCEPTION_HOOK_START_TRY; \