diff options
author | bunnei <bunneidev@gmail.com> | 2017-11-01 00:30:05 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-11-01 00:30:05 +0100 |
commit | 3597650f221036deb382d4e8812e717014619eee (patch) | |
tree | e16f1231d1423a16edf40735b9462187d0792138 /src/core/hle/service/service.cpp | |
parent | hle: Use Switch formatted result codes. (diff) | |
download | yuzu-3597650f221036deb382d4e8812e717014619eee.tar yuzu-3597650f221036deb382d4e8812e717014619eee.tar.gz yuzu-3597650f221036deb382d4e8812e717014619eee.tar.bz2 yuzu-3597650f221036deb382d4e8812e717014619eee.tar.lz yuzu-3597650f221036deb382d4e8812e717014619eee.tar.xz yuzu-3597650f221036deb382d4e8812e717014619eee.tar.zst yuzu-3597650f221036deb382d4e8812e717014619eee.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/service.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 826a775d1..b5d798e26 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -124,7 +124,7 @@ void ServiceFrameworkBase::InvokeRequest(Kernel::HLERequestContext& ctx) { handler_invoker(this, info->handler_callback, ctx); } -void ServiceFrameworkBase::HandleSyncRequest(SharedPtr<ServerSession> server_session) { +ResultCode ServiceFrameworkBase::HandleSyncRequest(SharedPtr<ServerSession> server_session) { u32* cmd_buf = (u32*)Memory::GetPointer(Kernel::GetCurrentThread()->GetTLSAddress()); // TODO(yuriks): The kernel should be the one handling this as part of translation after @@ -137,7 +137,7 @@ void ServiceFrameworkBase::HandleSyncRequest(SharedPtr<ServerSession> server_ses case IPC::CommandType::Close: { IPC::RequestBuilder rb{context, 1}; rb.Push(RESULT_SUCCESS); - break; + return ResultCode(ErrorModule::HIPC, ErrorDescription::RemoteProcessDead); } case IPC::CommandType::Control: { SM::g_service_manager->InvokeControlRequest(context); @@ -153,6 +153,8 @@ void ServiceFrameworkBase::HandleSyncRequest(SharedPtr<ServerSession> server_ses context.WriteToOutgoingCommandBuffer(cmd_buf, *Kernel::g_current_process, Kernel::g_handle_table); + + return RESULT_SUCCESS; } //////////////////////////////////////////////////////////////////////////////////////////////////// |