diff options
Diffstat (limited to 'src/core/hle/svc.cpp')
| -rw-r--r-- | src/core/hle/svc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 47041afd4..9db3d632a 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include "core/hle/kernel/client_session.h" | 10 | #include "core/hle/kernel/client_session.h" |
| 11 | #include "core/hle/kernel/handle_table.h" | 11 | #include "core/hle/kernel/handle_table.h" |
| 12 | #include "core/hle/kernel/process.h" | 12 | #include "core/hle/kernel/process.h" |
| 13 | #include "core/hle/kernel/sync_object.h" | ||
| 13 | #include "core/hle/kernel/thread.h" | 14 | #include "core/hle/kernel/thread.h" |
| 14 | #include "core/hle/lock.h" | 15 | #include "core/hle/lock.h" |
| 15 | #include "core/hle/result.h" | 16 | #include "core/hle/result.h" |
| @@ -71,8 +72,7 @@ static ResultCode ConnectToPort(Kernel::Handle* out_handle, VAddr port_name_addr | |||
| 71 | 72 | ||
| 72 | /// Makes a blocking IPC call to an OS service. | 73 | /// Makes a blocking IPC call to an OS service. |
| 73 | static ResultCode SendSyncRequest(Kernel::Handle handle) { | 74 | static ResultCode SendSyncRequest(Kernel::Handle handle) { |
| 74 | SharedPtr<Kernel::ClientSession> session = | 75 | SharedPtr<Kernel::SyncObject> session = Kernel::g_handle_table.Get<Kernel::SyncObject>(handle); |
| 75 | Kernel::g_handle_table.Get<Kernel::ClientSession>(handle); | ||
| 76 | if (session == nullptr) { | 76 | if (session == nullptr) { |
| 77 | LOG_ERROR(Kernel_SVC, "called with invalid handle=0x%08X", handle); | 77 | LOG_ERROR(Kernel_SVC, "called with invalid handle=0x%08X", handle); |
| 78 | return ERR_INVALID_HANDLE; | 78 | return ERR_INVALID_HANDLE; |