From c72a5a5775095037e0bf306779033f83b3bf2ad2 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 13 Mar 2017 13:14:34 +0300 Subject: [PATCH] thread_ctrl::finalize crash fix --- Utilities/Thread.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index e9e72c3878..2c7165065a 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -1500,6 +1500,11 @@ void thread_ctrl::finalize(std::exception_ptr eptr) noexcept const u64 time = 0; #endif + g_tls_log_prefix = [] + { + return g_tls_this_thread->m_name; + }; + LOG_NOTICE(GENERAL, "Thread time: %fs (%fGc); Faults: %u [rsx:%u, spu:%u];", time / 1000000000., cycles / 1000000000.,