From 3a888ebb9f2beb3d6c765669fbf3e6efb98fbba5 Mon Sep 17 00:00:00 2001 From: Adam Jones Date: Fri, 13 Sep 2024 02:23:55 +0100 Subject: [PATCH] Fix Regression 895 --- src/core/libraries/kernel/thread_management.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/libraries/kernel/thread_management.cpp b/src/core/libraries/kernel/thread_management.cpp index ec8c15afa..0da51425a 100644 --- a/src/core/libraries/kernel/thread_management.cpp +++ b/src/core/libraries/kernel/thread_management.cpp @@ -1063,7 +1063,7 @@ ScePthread PThreadPool::Create(const char* name) { std::scoped_lock lock{m_mutex}; for (auto* p : m_threads) { - if (p->is_free && p->name == name) { + if (p->is_free && name != nullptr && p->name == name) { p->is_free = false; return p; }