diff options
| author | bunnei <bunneidev@gmail.com> | 2017-12-28 23:12:28 -0500 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2017-12-28 23:12:28 -0500 |
| commit | 834fa5db65ab3bc2e05474e280f5a0a73be7411e (patch) | |
| tree | 3c1557cb761e6c53f6305b6ec349a01cc6438eb3 /src/core/hle/svc.cpp | |
| parent | 6e021f22b8c61654aa1e72ceef16202a11d42016 (diff) | |
kernel: Add SyncObject primitive, use it for ClientSession.
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 @@ #include "core/hle/kernel/client_session.h" #include "core/hle/kernel/handle_table.h" #include "core/hle/kernel/process.h" +#include "core/hle/kernel/sync_object.h" #include "core/hle/kernel/thread.h" #include "core/hle/lock.h" #include "core/hle/result.h" @@ -71,8 +72,7 @@ static ResultCode ConnectToPort(Kernel::Handle* out_handle, VAddr port_name_addr /// Makes a blocking IPC call to an OS service. static ResultCode SendSyncRequest(Kernel::Handle handle) { - SharedPtr<Kernel::ClientSession> session = - Kernel::g_handle_table.Get<Kernel::ClientSession>(handle); + SharedPtr<Kernel::SyncObject> session = Kernel::g_handle_table.Get<Kernel::SyncObject>(handle); if (session == nullptr) { LOG_ERROR(Kernel_SVC, "called with invalid handle=0x%08X", handle); return ERR_INVALID_HANDLE; |
