summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sm
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-07 16:39:57 +0100
committerbunnei <bunneidev@gmail.com>2018-01-07 23:12:07 +0100
commitc12c756539454908cf9868fc63d2425b3c87b1a3 (patch)
tree064103f6fa911888cc738f7b03204da0ac2e8811 /src/core/hle/service/sm
parentAppletOE: Fixed command buffer structure for ReceiveMessage. (diff)
downloadyuzu-c12c756539454908cf9868fc63d2425b3c87b1a3.tar
yuzu-c12c756539454908cf9868fc63d2425b3c87b1a3.tar.gz
yuzu-c12c756539454908cf9868fc63d2425b3c87b1a3.tar.bz2
yuzu-c12c756539454908cf9868fc63d2425b3c87b1a3.tar.lz
yuzu-c12c756539454908cf9868fc63d2425b3c87b1a3.tar.xz
yuzu-c12c756539454908cf9868fc63d2425b3c87b1a3.tar.zst
yuzu-c12c756539454908cf9868fc63d2425b3c87b1a3.zip
Diffstat (limited to 'src/core/hle/service/sm')
-rw-r--r--src/core/hle/service/sm/controller.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/sm/controller.cpp b/src/core/hle/service/sm/controller.cpp
index 392a3b2fe..ae38b6bb0 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");
}