mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-27 04:36:04 +00:00
kern: fix incorrect waiter management in KProcess::ReleaseUserException
This commit is contained in:
parent
1be74ea6e2
commit
3bedf56512
1 changed files with 1 additions and 1 deletions
|
@ -804,7 +804,7 @@ namespace ams::kern {
|
|||
|
||||
/* Remove waiter thread. */
|
||||
s32 num_waiters;
|
||||
if (KThread *next = thread->RemoveWaiterByKey(std::addressof(num_waiters), reinterpret_cast<uintptr_t>(std::addressof(m_exception_thread))); next != nullptr) {
|
||||
if (KThread *next = thread->RemoveWaiterByKey(std::addressof(num_waiters), reinterpret_cast<uintptr_t>(std::addressof(m_exception_thread)) | 1); next != nullptr) {
|
||||
next->SetState(KThread::ThreadState_Runnable);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue