From eac43e655a53b63b26a9970daf0f5527ded28d88 Mon Sep 17 00:00:00 2001 From: cpasjuste Date: Wed, 9 Jan 2019 12:23:51 +0100 Subject: [PATCH] c11-threads: use KERNELRESULT --- nx/source/runtime/c11-threads.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nx/source/runtime/c11-threads.c b/nx/source/runtime/c11-threads.c index 14c277c2..43c3667d 100644 --- a/nx/source/runtime/c11-threads.c +++ b/nx/source/runtime/c11-threads.c @@ -114,9 +114,8 @@ static int __cnd_timedwait(cnd_t *__restrict cond, mtx_t *__restrict mtx, u64 ti mtx->rmutex.counter = 1; } - if (rc == 0xEA01) { + if (R_VALUE(rc) == KERNELRESULT(TimedOut)) return thrd_timedout; - } return R_SUCCEEDED(rc) ? thrd_success : thrd_error; }