From 54aa8efc98ea1209bcab46898796ee9eb936307d Mon Sep 17 00:00:00 2001 From: nmzik Date: Mon, 17 Aug 2026 15:40:13 +0200 Subject: [PATCH] libc: match PS5 mutex unlock result semantics Co-authored-by: shadowbeat070 <70843316+shadowbeat070@users.noreply.github.com> --- src/libs/libC.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/libC.cpp b/src/libs/libC.cpp index 657be7e23..895842a17 100644 --- a/src/libs/libC.cpp +++ b/src/libs/libC.cpp @@ -540,7 +540,8 @@ static KYTY_SYSV_ABI int MtxTimedlock(LibKernel::PthreadMutex* mtx, const void* static KYTY_SYSV_ABI int MtxUnlock(LibKernel::PthreadMutex* mtx) { PRINT_NAME(); - return mtx_result(LibKernel::PthreadMutexUnlock(mtx)); + (void)LibKernel::PthreadMutexUnlock(mtx); + return static_cast(ThrdResult::Success); } static KYTY_SYSV_ABI int MtxCurrentOwns(LibKernel::PthreadMutex* /*mtx*/) {