summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar bunnei2018-02-03 13:29:18 -0500
committerGravatar bunnei2018-02-03 13:29:18 -0500
commitf9c9ce20050a2aad66d40d0f49bf97065b624848 (patch)
treeda3b719894c97544fd5cb8412897e41011aef055 /src/core/hle/kernel
parentMerge pull request #157 from bunnei/fix-duplicate-session (diff)
downloadyuzu-f9c9ce20050a2aad66d40d0f49bf97065b624848.tar.gz
yuzu-f9c9ce20050a2aad66d40d0f49bf97065b624848.tar.xz
yuzu-f9c9ce20050a2aad66d40d0f49bf97065b624848.zip
ArbitrateLock: Assert that requesting_thread is current_thread.
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/svc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 4c0276cf0..f516927cd 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -263,6 +263,7 @@ static ResultCode ArbitrateLock(Handle holding_thread_handle, VAddr mutex_addr,
263 SharedPtr<Thread> requesting_thread = g_handle_table.Get<Thread>(requesting_thread_handle); 263 SharedPtr<Thread> requesting_thread = g_handle_table.Get<Thread>(requesting_thread_handle);
264 264
265 ASSERT(requesting_thread); 265 ASSERT(requesting_thread);
266 ASSERT(requesting_thread == GetCurrentThread());
266 267
267 SharedPtr<Mutex> mutex = g_object_address_table.Get<Mutex>(mutex_addr); 268 SharedPtr<Mutex> mutex = g_object_address_table.Get<Mutex>(mutex_addr);
268 if (!mutex) { 269 if (!mutex) {