diff options
Diffstat (limited to 'src/core/hle/svc.cpp')
| -rw-r--r-- | src/core/hle/svc.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index f24b5c91a..e5ba9a484 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -236,14 +236,16 @@ static ResultCode ConnectToPort(Handle* out_handle, const char* port_name) { | |||
| 236 | 236 | ||
| 237 | /// Makes a blocking IPC call to an OS service. | 237 | /// Makes a blocking IPC call to an OS service. |
| 238 | static ResultCode SendSyncRequest(Handle handle) { | 238 | static ResultCode SendSyncRequest(Handle handle) { |
| 239 | SharedPtr<Kernel::ClientSession> session = Kernel::g_handle_table.Get<Kernel::ClientSession>(handle); | 239 | SharedPtr<Kernel::ClientSession> session = |
| 240 | Kernel::g_handle_table.Get<Kernel::ClientSession>(handle); | ||
| 240 | if (session == nullptr) { | 241 | if (session == nullptr) { |
| 241 | return ERR_INVALID_HANDLE; | 242 | return ERR_INVALID_HANDLE; |
| 242 | } | 243 | } |
| 243 | 244 | ||
| 244 | LOG_TRACE(Kernel_SVC, "called handle=0x%08X(%s)", handle, session->GetName().c_str()); | 245 | LOG_TRACE(Kernel_SVC, "called handle=0x%08X(%s)", handle, session->GetName().c_str()); |
| 245 | 246 | ||
| 246 | // TODO(Subv): svcSendSyncRequest should put the caller thread to sleep while the server responds and cause a reschedule. | 247 | // TODO(Subv): svcSendSyncRequest should put the caller thread to sleep while the server |
| 248 | // responds and cause a reschedule. | ||
| 247 | return session->SendSyncRequest(); | 249 | return session->SendSyncRequest(); |
| 248 | } | 250 | } |
| 249 | 251 | ||