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 | 78b9ee4f6c0e7b4d00d57f55b249e7291180c744 (patch) | |
| tree | 7f154ee4fc6f9922369756d7771cce8de7bb4b8a /src/core/hle/kernel/thread.cpp | |
| parent | 0653cfa1a91c236e0ad6f6157b352bf0ccc28abf (diff) | |
| parent | 18ca210bb73dd791a551e76bd410cf429ce9095b (diff) | |
Merge pull request #2267 from FernandoS27/fix-2238
Fix crash caused by #2238.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -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 d9ffebc3ff..3b22e8e0d2 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(); |
