From 842ce50c2ffec9201315d7feb8452f29b882f095 Mon Sep 17 00:00:00 2001 From: plutoo Date: Wed, 21 Feb 2018 03:05:15 +0100 Subject: [PATCH] Condvar fix --- nx/source/kernel/condvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/kernel/condvar.c b/nx/source/kernel/condvar.c index 6e474b18..d3be0ed2 100644 --- a/nx/source/kernel/condvar.c +++ b/nx/source/kernel/condvar.c @@ -13,7 +13,7 @@ void condvarInit(CondVar* c, Mutex* m) { Result condvarWaitTimeout(CondVar* c, u64 timeout) { Result rc; - rc = svcWaitProcessWideKeyAtomic(&c->tag, (u32*) c->mutex, getThreadVars()->handle, timeout); + rc = svcWaitProcessWideKeyAtomic((u32*) c->mutex, &c->tag, getThreadVars()->handle, timeout); // On timeout, we need to acquire it manually. if (rc == 0xEA01)