Explorar o código

ArbitrateLock: Assert that requesting_thread is current_thread.

bunnei %!s(int64=8) %!d(string=hai) anos
pai
achega
f9c9ce2005
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/core/hle/kernel/svc.cpp

+ 1 - 0
src/core/hle/kernel/svc.cpp

@@ -263,6 +263,7 @@ static ResultCode ArbitrateLock(Handle holding_thread_handle, VAddr mutex_addr,
     SharedPtr<Thread> requesting_thread = g_handle_table.Get<Thread>(requesting_thread_handle);
 
     ASSERT(requesting_thread);
+    ASSERT(requesting_thread == GetCurrentThread());
 
     SharedPtr<Mutex> mutex = g_object_address_table.Get<Mutex>(mutex_addr);
     if (!mutex) {