diff options
author | Nikita Strygin <nikita6@bk.ru> | 2022-07-31 22:17:45 +0200 |
---|---|---|
committer | Nikita Strygin <nikita6@bk.ru> | 2022-07-31 22:17:45 +0200 |
commit | 1cf6f5c623b16d5f3f37faf2a3e844f2f5f0fc1d (patch) | |
tree | cc65994f5877dd77f0797e0618421224644b97a3 /src/core | |
parent | Merge pull request #8684 from liamwhite/delete-shader (diff) | |
download | yuzu-1cf6f5c623b16d5f3f37faf2a3e844f2f5f0fc1d.tar yuzu-1cf6f5c623b16d5f3f37faf2a3e844f2f5f0fc1d.tar.gz yuzu-1cf6f5c623b16d5f3f37faf2a3e844f2f5f0fc1d.tar.bz2 yuzu-1cf6f5c623b16d5f3f37faf2a3e844f2f5f0fc1d.tar.lz yuzu-1cf6f5c623b16d5f3f37faf2a3e844f2f5f0fc1d.tar.xz yuzu-1cf6f5c623b16d5f3f37faf2a3e844f2f5f0fc1d.tar.zst yuzu-1cf6f5c623b16d5f3f37faf2a3e844f2f5f0fc1d.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/service.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index c64291e7f..dadaf897f 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -194,13 +194,16 @@ Result ServiceFrameworkBase::HandleSyncRequest(Kernel::KServerSession& session, Kernel::HLERequestContext& ctx) { const auto guard = LockService(); + Result result = ResultSuccess; + switch (ctx.GetCommandType()) { case IPC::CommandType::Close: case IPC::CommandType::TIPC_Close: { session.Close(); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(ResultSuccess); - return IPC::ERR_REMOTE_PROCESS_DEAD; + result = IPC::ERR_REMOTE_PROCESS_DEAD; + break; } case IPC::CommandType::ControlWithContext: case IPC::CommandType::Control: { @@ -227,7 +230,7 @@ Result ServiceFrameworkBase::HandleSyncRequest(Kernel::KServerSession& session, ctx.WriteToOutgoingCommandBuffer(ctx.GetThread()); } - return ResultSuccess; + return result; } /// Initialize Services |