diff options
| author | 2017-12-31 16:06:11 -0500 | |
|---|---|---|
| committer | 2017-12-31 16:06:11 -0500 | |
| commit | 001091fa720227a0075364b52c6778d8bdfacbd9 (patch) | |
| tree | 91d12d051a78cc5b8c10fdcf16e9815adabc8d17 /src/core | |
| parent | svc: Stub out svcGetCurrentProcessorNumber. (diff) | |
| download | yuzu-001091fa720227a0075364b52c6778d8bdfacbd9.tar.gz yuzu-001091fa720227a0075364b52c6778d8bdfacbd9.tar.xz yuzu-001091fa720227a0075364b52c6778d8bdfacbd9.zip | |
svc: Cleanup svcGetThreadPriority.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/svc.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index fd33a5971..0c53db1c5 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -149,10 +149,12 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id) | |||
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | /// Gets the priority for the specified thread | 151 | /// Gets the priority for the specified thread |
| 152 | static ResultCode GetThreadPriority(s32* priority, Kernel::Handle handle) { | 152 | static ResultCode GetThreadPriority(u32* priority, Handle handle) { |
| 153 | LOG_TRACE(Kernel_SVC, "called, handle=0x%08X", handle); | ||
| 154 | const SharedPtr<Kernel::Thread> thread = Kernel::g_handle_table.Get<Kernel::Thread>(handle); | 153 | const SharedPtr<Kernel::Thread> thread = Kernel::g_handle_table.Get<Kernel::Thread>(handle); |
| 155 | *priority = thread ? thread->GetPriority() : 0; | 154 | if (!thread) |
| 155 | return ERR_INVALID_HANDLE; | ||
| 156 | |||
| 157 | *priority = thread->GetPriority(); | ||
| 156 | return RESULT_SUCCESS; | 158 | return RESULT_SUCCESS; |
| 157 | } | 159 | } |
| 158 | 160 | ||