diff --git a/src/core/libraries/kernel/thread_management.cpp b/src/core/libraries/kernel/thread_management.cpp index 804e18c5..0d427ad1 100644 --- a/src/core/libraries/kernel/thread_management.cpp +++ b/src/core/libraries/kernel/thread_management.cpp @@ -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; }