From 01a375eefc79a78c35a753a7257622272c3555d3 Mon Sep 17 00:00:00 2001 From: kanjitalk755 Date: Mon, 25 Jun 2018 22:43:19 +0900 Subject: [PATCH] minor fix --- SheepShaver/src/CrossPlatform/sigsegv.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SheepShaver/src/CrossPlatform/sigsegv.cpp b/SheepShaver/src/CrossPlatform/sigsegv.cpp index 47a6adcd..69b48238 100644 --- a/SheepShaver/src/CrossPlatform/sigsegv.cpp +++ b/SheepShaver/src/CrossPlatform/sigsegv.cpp @@ -2639,10 +2639,9 @@ static bool handle_badaccess(SIGSEGV_FAULT_HANDLER_ARGLIST_1) #endif sigsegv_info_t * const SIP = &SI; +#if defined(__APPLE__) && defined(__x86_64__) if (!SIP->has_thr_state) mach_get_thread_state(SIP); - -#if defined(__APPLE__) && defined(__x86_64__) x86_thread_state64_t *ts = &SIP->thr_state; uint8_t *rip = (uint8_t *)ts->__rip; switch (rip[0]) {