diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2018-09-19 07:09:59 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2018-09-19 07:09:59 +0200 |
commit | 6a0612f2bfb9f85c420be01b0b667e936f9c0076 (patch) | |
tree | 5aa43da1ef48823ec02801315114e76124f9d04e /src/core/hle/service/sm/sm.cpp | |
parent | Merge pull request #1348 from ogniK5377/GetImageSize (diff) | |
download | yuzu-6a0612f2bfb9f85c420be01b0b667e936f9c0076.tar yuzu-6a0612f2bfb9f85c420be01b0b667e936f9c0076.tar.gz yuzu-6a0612f2bfb9f85c420be01b0b667e936f9c0076.tar.bz2 yuzu-6a0612f2bfb9f85c420be01b0b667e936f9c0076.tar.lz yuzu-6a0612f2bfb9f85c420be01b0b667e936f9c0076.tar.xz yuzu-6a0612f2bfb9f85c420be01b0b667e936f9c0076.tar.zst yuzu-6a0612f2bfb9f85c420be01b0b667e936f9c0076.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/sm/sm.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp index 096f0fd52..464e79d01 100644 --- a/src/core/hle/service/sm/sm.cpp +++ b/src/core/hle/service/sm/sm.cpp @@ -108,7 +108,7 @@ void SM::GetService(Kernel::HLERequestContext& ctx) { auto client_port = service_manager->GetServicePort(name); if (client_port.Failed()) { - IPC::ResponseBuilder rb = rp.MakeBuilder(2, 0, 0); + IPC::ResponseBuilder rb{ctx, 2}; rb.Push(client_port.Code()); LOG_ERROR(Service_SM, "called service={} -> error 0x{:08X}", name, client_port.Code().raw); if (name.length() == 0) @@ -121,8 +121,7 @@ void SM::GetService(Kernel::HLERequestContext& ctx) { ASSERT(session.Succeeded()); if (session.Succeeded()) { LOG_DEBUG(Service_SM, "called service={} -> session={}", name, (*session)->GetObjectId()); - IPC::ResponseBuilder rb = - rp.MakeBuilder(2, 0, 1, IPC::ResponseBuilder::Flags::AlwaysMoveHandles); + IPC::ResponseBuilder rb{ctx, 2, 0, 1, IPC::ResponseBuilder::Flags::AlwaysMoveHandles}; rb.Push(session.Code()); rb.PushMoveObjects(std::move(session).Unwrap()); } |