From c12505c19d47e3427452da5622e48b9cfc9d52e3 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 22 Dec 2022 21:17:31 +0100 Subject: [PATCH] Fix TRACY_NO_CALLSTACK on Windows. --- public/client/TracyProfiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp index eadad548..d82bf603 100644 --- a/public/client/TracyProfiler.cpp +++ b/public/client/TracyProfiler.cpp @@ -1415,7 +1415,9 @@ void Profiler::SpawnWorkerThreads() #if defined _WIN32 && !defined TRACY_UWP && !defined TRACY_NO_CRASH_HANDLER s_profilerThreadId = GetThreadId( s_thread->Handle() ); +# ifdef TRACY_HAS_CALLSTACK s_symbolThreadId = GetThreadId( s_symbolThread->Handle() ); +# endif m_exceptionHandler = AddVectoredExceptionHandler( 1, CrashFilter ); #endif