summaryrefslogtreecommitdiff
path: root/src/core/hle/service/srv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/srv.cpp')
-rw-r--r--src/core/hle/service/srv.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cpp
index bb2c8fcc4..ff7a84347 100644
--- a/src/core/hle/service/srv.cpp
+++ b/src/core/hle/service/srv.cpp
@@ -93,8 +93,12 @@ static void GetServiceHandle(Service::Interface* self) {
93 // Connect to the port and retrieve the client endpoint of the connection Session. 93 // Connect to the port and retrieve the client endpoint of the connection Session.
94 auto client_session = client_port->Connect(); 94 auto client_session = client_port->Connect();
95 95
96 // Return the client session 96 res = client_session.Code();
97 cmd_buff[3] = Kernel::g_handle_table.Create(client_session).MoveFrom(); 97
98 if (client_session.Succeeded()) {
99 // Return the client session
100 cmd_buff[3] = Kernel::g_handle_table.Create(*client_session).MoveFrom();
101 }
98 LOG_TRACE(Service_SRV, "called port=%s, handle=0x%08X", port_name.c_str(), cmd_buff[3]); 102 LOG_TRACE(Service_SRV, "called port=%s, handle=0x%08X", port_name.c_str(), cmd_buff[3]);
99 } else { 103 } else {
100 LOG_ERROR(Service_SRV, "(UNIMPLEMENTED) called port=%s", port_name.c_str()); 104 LOG_ERROR(Service_SRV, "(UNIMPLEMENTED) called port=%s", port_name.c_str());