libraries: fix for Windows crash during LLE libc initialization

This commit is contained in:
psucien 2024-06-15 20:04:36 +02:00
parent 0fa7d5d02c
commit 1e69f83d9e
1 changed files with 4 additions and 0 deletions

View File

@ -526,7 +526,11 @@ int PS4_SYSV_ABI scePthreadMutexattrSetprotocol(ScePthreadMutexattr* attr, int p
UNREACHABLE_MSG("Invalid protocol: {}", protocol);
}
#if _WIN64
int result = 0;
#else
int result = pthread_mutexattr_setprotocol(&(*attr)->pth_mutex_attr, pprotocol);
#endif
(*attr)->pprotocol = pprotocol;
return result == 0 ? SCE_OK : SCE_KERNEL_ERROR_EINVAL;
}