mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-03 01:52:14 +02:00
mutex: fix svcArbitrateLock call arguments
1st (thread handle) and 3rd (tag) arguments were swapped.
This commit is contained in:
parent
4fcdb6eb34
commit
41196abe11
@ -55,7 +55,7 @@ void mutexLock(Mutex* m) {
|
||||
}
|
||||
|
||||
// Ask the kernel to arbitrate the lock for us.
|
||||
if (UNLIKELY(R_FAILED(svcArbitrateLock(value & ~HANDLE_WAIT_MASK, m, cur_handle)))) {
|
||||
if (UNLIKELY(R_FAILED(svcArbitrateLock(cur_handle, m, value & ~HANDLE_WAIT_MASK)))) {
|
||||
// This should be impossible under normal circumstances.
|
||||
svcBreak(BreakReason_Assert, 0, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user