summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sm/sm.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-07 15:56:57 +0100
committerbunnei <bunneidev@gmail.com>2018-01-07 23:11:54 +0100
commit80f6df5414517e575037661ffb903232bf3e590c (patch)
tree8be1c03aab7a52034363beb19c541ff442ebfd2f /src/core/hle/service/sm/sm.cpp
parentIPC: Add functions to read the input move/copy objects from an IPC request. (diff)
downloadyuzu-80f6df5414517e575037661ffb903232bf3e590c.tar
yuzu-80f6df5414517e575037661ffb903232bf3e590c.tar.gz
yuzu-80f6df5414517e575037661ffb903232bf3e590c.tar.bz2
yuzu-80f6df5414517e575037661ffb903232bf3e590c.tar.lz
yuzu-80f6df5414517e575037661ffb903232bf3e590c.tar.xz
yuzu-80f6df5414517e575037661ffb903232bf3e590c.tar.zst
yuzu-80f6df5414517e575037661ffb903232bf3e590c.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/sm/sm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp
index f1d93ea2b..509945136 100644
--- a/src/core/hle/service/sm/sm.cpp
+++ b/src/core/hle/service/sm/sm.cpp
@@ -107,7 +107,7 @@ void SM::GetService(Kernel::HLERequestContext& ctx) {
auto client_port = service_manager->GetServicePort(name);
if (client_port.Failed()) {
- IPC::RequestBuilder rb = rp.MakeBuilder(1, 0, 0);
+ IPC::RequestBuilder rb = rp.MakeBuilder(2, 0, 0);
rb.Push(client_port.Code());
LOG_ERROR(Service_SM, "called service=%s -> error 0x%08X", name.c_str(),
client_port.Code().raw);
@@ -120,7 +120,7 @@ void SM::GetService(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_SM, "called service=%s -> session=%u", name.c_str(),
(*session)->GetObjectId());
IPC::RequestBuilder rb = rp.MakeBuilder(2, 0, 1);
- rb.Push<u64>(0);
+ rb.Push(session.Code());
rb.PushMoveObjects(std::move(session).Unwrap());
}
}