Skip to content

Commit

Permalink
Handle case where no TLS exists for a thread in the thread widget and…
Browse files Browse the repository at this point in the history
… avoid crashing
  • Loading branch information
Kaldaien committed Dec 30, 2024
1 parent 1744286 commit acbc83f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgets/threads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2145,10 +2145,10 @@ class SKWG_Thread_Profiler : public SK_Widget
SK_TLS* pTLS =
SK_TLS_BottomEx (dwSelectedTid);

auto& thread_scheduler = *pTLS->scheduler;

if (sysinfo.dwNumberOfProcessors > 1 && pTLS != nullptr)
{
auto& thread_scheduler = *pTLS->scheduler;

ImGui::Separator ();

for (DWORD_PTR j = 0; j < sysinfo.dwNumberOfProcessors; j++)
Expand Down

0 comments on commit acbc83f

Please sign in to comment.