diff options
| author | Subv <subv2112@gmail.com> | 2018-01-07 10:39:57 -0500 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2018-01-07 17:12:07 -0500 |
| commit | d3f259cd7385a8d60f43df49699656d9940b5c52 (patch) | |
| tree | 064103f6fa911888cc738f7b03204da0ac2e8811 /src | |
| parent | f0a939c2404eda9d7aeb62ec620e0abe452fe9a8 (diff) | |
IPC: Make DuplicateSession return the Domain instead of the Session if the request was made on a Domain interface.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/pctl/pctl_a.cpp | 3 | ||||
| -rw-r--r-- | src/core/hle/service/sm/controller.cpp | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/core/hle/service/pctl/pctl_a.cpp b/src/core/hle/service/pctl/pctl_a.cpp index e3bdd6c47f..9fef0bcf1f 100644 --- a/src/core/hle/service/pctl/pctl_a.cpp +++ b/src/core/hle/service/pctl/pctl_a.cpp @@ -11,8 +11,9 @@ namespace PCTL { void PCTL_A::GetService(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service, "(STUBBED) called"); - IPC::RequestBuilder rb{ctx, 1}; + IPC::RequestBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); + // TODO(Subv): This should return an IParentalControlService interface. } PCTL_A::PCTL_A() : ServiceFramework("pctl:a") { diff --git a/src/core/hle/service/sm/controller.cpp b/src/core/hle/service/sm/controller.cpp index 392a3b2fe2..ae38b6bb03 100644 --- a/src/core/hle/service/sm/controller.cpp +++ b/src/core/hle/service/sm/controller.cpp @@ -23,7 +23,11 @@ void Controller::ConvertSessionToDomain(Kernel::HLERequestContext& ctx) { void Controller::DuplicateSession(Kernel::HLERequestContext& ctx) { IPC::RequestBuilder rb{ctx, 2, 0, 1}; rb.Push(RESULT_SUCCESS); - rb.PushMoveObjects(ctx.ServerSession()); + // TODO(Subv): Check if this is correct + if (ctx.IsDomain()) + rb.PushMoveObjects(ctx.Domain()); + else + rb.PushMoveObjects(ctx.ServerSession()); LOG_DEBUG(Service, "called"); } |
