mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-29 11:06:07 +00:00
Fix Regression 895
This commit is contained in:
parent
1b6cc447b4
commit
3a888ebb9f
|
@ -1063,7 +1063,7 @@ ScePthread PThreadPool::Create(const char* name) {
|
||||||
std::scoped_lock lock{m_mutex};
|
std::scoped_lock lock{m_mutex};
|
||||||
|
|
||||||
for (auto* p : m_threads) {
|
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;
|
p->is_free = false;
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue