mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +00:00
Check thread param on posix_pthread_rename_np (#2133)
This commit is contained in:
parent
466e071c97
commit
8a309c30a9
1 changed files with 3 additions and 0 deletions
|
@ -386,6 +386,9 @@ int PS4_SYSV_ABI posix_sched_get_priority_min() {
|
|||
}
|
||||
|
||||
int PS4_SYSV_ABI posix_pthread_rename_np(PthreadT thread, const char* name) {
|
||||
if (thread == nullptr) {
|
||||
return POSIX_EINVAL;
|
||||
}
|
||||
LOG_INFO(Kernel_Pthread, "name = {}", name);
|
||||
Common::SetThreadName(reinterpret_cast<void*>(thread->native_thr.GetHandle()), name);
|
||||
thread->name = name;
|
||||
|
|
Loading…
Add table
Reference in a new issue