diff options
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/mutex.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index eee7c4935..ee7507edf 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp | |||
| @@ -122,7 +122,7 @@ bool ReleaseMutex(Mutex* mutex) { | |||
| 122 | Result ReleaseMutex(Handle handle) { | 122 | Result ReleaseMutex(Handle handle) { |
| 123 | Mutex* mutex = Kernel::g_object_pool.GetFast<Mutex>(handle); | 123 | Mutex* mutex = Kernel::g_object_pool.GetFast<Mutex>(handle); |
| 124 | 124 | ||
| 125 | _assert_msg_(KERNEL, mutex, "ReleaseMutex tried to release a NULL mutex!"); | 125 | _assert_msg_(KERNEL, (mutex != NULL), "ReleaseMutex tried to release a NULL mutex!"); |
| 126 | 126 | ||
| 127 | if (!ReleaseMutex(mutex)) { | 127 | if (!ReleaseMutex(mutex)) { |
| 128 | return -1; | 128 | return -1; |
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index da93e006c..5fdb4fbe6 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -353,7 +353,7 @@ Handle CreateThread(const char* name, u32 entry_point, s32 priority, u32 arg, s3 | |||
| 353 | /// Get the priority of the thread specified by handle | 353 | /// Get the priority of the thread specified by handle |
| 354 | u32 GetThreadPriority(const Handle handle) { | 354 | u32 GetThreadPriority(const Handle handle) { |
| 355 | Thread* thread = g_object_pool.GetFast<Thread>(handle); | 355 | Thread* thread = g_object_pool.GetFast<Thread>(handle); |
| 356 | _assert_msg_(KERNEL, thread, "called, but thread is NULL!"); | 356 | _assert_msg_(KERNEL, (thread != NULL), "called, but thread is NULL!"); |
| 357 | return thread->current_priority; | 357 | return thread->current_priority; |
| 358 | } | 358 | } |
| 359 | 359 | ||
| @@ -365,7 +365,7 @@ Result SetThreadPriority(Handle handle, s32 priority) { | |||
| 365 | } else { | 365 | } else { |
| 366 | thread = g_object_pool.GetFast<Thread>(handle); | 366 | thread = g_object_pool.GetFast<Thread>(handle); |
| 367 | } | 367 | } |
| 368 | _assert_msg_(KERNEL, thread, "called, but thread is NULL!"); | 368 | _assert_msg_(KERNEL, (thread != NULL), "called, but thread is NULL!"); |
| 369 | 369 | ||
| 370 | // If priority is invalid, clamp to valid range | 370 | // If priority is invalid, clamp to valid range |
| 371 | if (priority < THREADPRIO_HIGHEST || priority > THREADPRIO_LOWEST) { | 371 | if (priority < THREADPRIO_HIGHEST || priority > THREADPRIO_LOWEST) { |