Kernel/SVC: Don't let svcReleaseMutex release a mutex owned by another thread.
This behavior was reverse engineered from the 3DS kernel.
This commit is contained in:
@ -818,9 +818,7 @@ static ResultCode ReleaseMutex(Kernel::Handle handle) {
|
||||
if (mutex == nullptr)
|
||||
return ERR_INVALID_HANDLE;
|
||||
|
||||
mutex->Release();
|
||||
|
||||
return RESULT_SUCCESS;
|
||||
return mutex->Release(Kernel::GetCurrentThread());
|
||||
}
|
||||
|
||||
/// Get the ID of the specified process
|
||||
|
Reference in New Issue
Block a user