diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-20 21:36:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-20 21:36:55 -0400 |
commit | 872a7bee725b01d611903fe1dfa96a314324b413 (patch) | |
tree | 7f154ee4fc6f9922369756d7771cce8de7bb4b8a | |
parent | e8ff8a66b0980399a5ad9d54bba06a88b423ba62 (diff) | |
parent | 8a320a6ee2d803f607655206d0f3315d4e7c9f57 (diff) |
Merge pull request #2267 from FernandoS27/fix-2238
Fix crash caused by #2238.
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index d9ffebc3f..3b22e8e0d 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -314,8 +314,9 @@ void Thread::UpdatePriority() { } // Ensure that the thread is within the correct location in the waiting list. + auto old_owner = lock_owner; lock_owner->RemoveMutexWaiter(this); - lock_owner->AddMutexWaiter(this); + old_owner->AddMutexWaiter(this); // Recursively update the priority of the thread that depends on the priority of this one. lock_owner->UpdatePriority(); |