diff options
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 700f4ea7c..0385a64fd 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -146,12 +146,11 @@ void ChangeReadyState(Thread* t, bool ready) { | |||
| 146 | inline bool VerifyWait(const Handle& thread, WaitType type, Handle handle) { | 146 | inline bool VerifyWait(const Handle& thread, WaitType type, Handle handle) { |
| 147 | Handle wait_id = 0; | 147 | Handle wait_id = 0; |
| 148 | Thread *t = g_object_pool.GetFast<Thread>(thread); | 148 | Thread *t = g_object_pool.GetFast<Thread>(thread); |
| 149 | if (t) { | 149 | if (t != nullptr && type == t->wait_type && handle == t->wait_handle) { |
| 150 | if (type == t->wait_type && handle == t->wait_handle) { | 150 | return true; |
| 151 | return true; | ||
| 152 | } | ||
| 153 | } else { | 151 | } else { |
| 154 | ERROR_LOG(KERNEL, "thread 0x%08X does not exist", thread); | 152 | ERROR_LOG(KERNEL, "thread 0x%08X does not exist", thread); |
| 153 | return false; | ||
| 155 | } | 154 | } |
| 156 | return false; | 155 | return false; |
| 157 | } | 156 | } |