mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-21 19:36:55 +02:00
libc: match PS5 mutex unlock result semantics
Co-authored-by: shadowbeat070 <70843316+shadowbeat070@users.noreply.github.com>
This commit is contained in:
+2
-1
@@ -540,7 +540,8 @@ static KYTY_SYSV_ABI int MtxTimedlock(LibKernel::PthreadMutex* mtx, const void*
|
|||||||
static KYTY_SYSV_ABI int MtxUnlock(LibKernel::PthreadMutex* mtx) {
|
static KYTY_SYSV_ABI int MtxUnlock(LibKernel::PthreadMutex* mtx) {
|
||||||
PRINT_NAME();
|
PRINT_NAME();
|
||||||
|
|
||||||
return mtx_result(LibKernel::PthreadMutexUnlock(mtx));
|
(void)LibKernel::PthreadMutexUnlock(mtx);
|
||||||
|
return static_cast<int>(ThrdResult::Success);
|
||||||
}
|
}
|
||||||
|
|
||||||
static KYTY_SYSV_ABI int MtxCurrentOwns(LibKernel::PthreadMutex* /*mtx*/) {
|
static KYTY_SYSV_ABI int MtxCurrentOwns(LibKernel::PthreadMutex* /*mtx*/) {
|
||||||
|
|||||||
Reference in New Issue
Block a user