diff options
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index dca1bcc92..7d676e5f7 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -342,7 +342,7 @@ static ResultCode ConnectToNamedPort32(Core::System& system, Handle* out_handle, | |||
| 342 | static ResultCode SendSyncRequest(Core::System& system, Handle handle) { | 342 | static ResultCode SendSyncRequest(Core::System& system, Handle handle) { |
| 343 | auto& kernel = system.Kernel(); | 343 | auto& kernel = system.Kernel(); |
| 344 | const auto& handle_table = kernel.CurrentProcess()->GetHandleTable(); | 344 | const auto& handle_table = kernel.CurrentProcess()->GetHandleTable(); |
| 345 | std::shared_ptr<ClientSession> session = handle_table.Get<ClientSession>(handle); | 345 | auto session = handle_table.Get<ClientSession>(handle); |
| 346 | if (!session) { | 346 | if (!session) { |
| 347 | LOG_ERROR(Kernel_SVC, "called with invalid handle=0x{:08X}", handle); | 347 | LOG_ERROR(Kernel_SVC, "called with invalid handle=0x{:08X}", handle); |
| 348 | return ResultInvalidHandle; | 348 | return ResultInvalidHandle; |
| @@ -437,7 +437,7 @@ static ResultCode WaitSynchronization(Core::System& system, s32* index, VAddr ha | |||
| 437 | { | 437 | { |
| 438 | auto object = handle_table.Get<KSynchronizationObject>(handle); | 438 | auto object = handle_table.Get<KSynchronizationObject>(handle); |
| 439 | if (object) { | 439 | if (object) { |
| 440 | objects[i] = object.get(); | 440 | objects[i] = object; |
| 441 | succeeded = true; | 441 | succeeded = true; |
| 442 | } | 442 | } |
| 443 | } | 443 | } |
| @@ -1190,7 +1190,7 @@ static ResultCode QueryProcessMemory(Core::System& system, VAddr memory_info_add | |||
| 1190 | std::lock_guard lock{HLE::g_hle_lock}; | 1190 | std::lock_guard lock{HLE::g_hle_lock}; |
| 1191 | LOG_TRACE(Kernel_SVC, "called process=0x{:08X} address={:X}", process_handle, address); | 1191 | LOG_TRACE(Kernel_SVC, "called process=0x{:08X} address={:X}", process_handle, address); |
| 1192 | const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable(); | 1192 | const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable(); |
| 1193 | std::shared_ptr<Process> process = handle_table.Get<Process>(process_handle); | 1193 | auto process = handle_table.Get<Process>(process_handle); |
| 1194 | if (!process) { | 1194 | if (!process) { |
| 1195 | LOG_ERROR(Kernel_SVC, "Process handle does not exist, process_handle=0x{:08X}", | 1195 | LOG_ERROR(Kernel_SVC, "Process handle does not exist, process_handle=0x{:08X}", |
| 1196 | process_handle); | 1196 | process_handle); |