summaryrefslogtreecommitdiffstats
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2016-12-05 19:59:57 +0100
committerSubv <subv2112@gmail.com>2016-12-05 19:59:57 +0100
commitc93c5a72bb46796e898f54a7c13dfb8d941ddd4d (patch)
tree1e5bded69840948daaa8b27bcba05a14b38dcb75 /src/core/hle/svc.cpp
parentHLE: Use a member variable instead of a virtual function to retrieve the max number of sessions that can be connected to an HLE service at the same time. (diff)
downloadyuzu-c93c5a72bb46796e898f54a7c13dfb8d941ddd4d.tar
yuzu-c93c5a72bb46796e898f54a7c13dfb8d941ddd4d.tar.gz
yuzu-c93c5a72bb46796e898f54a7c13dfb8d941ddd4d.tar.bz2
yuzu-c93c5a72bb46796e898f54a7c13dfb8d941ddd4d.tar.lz
yuzu-c93c5a72bb46796e898f54a7c13dfb8d941ddd4d.tar.xz
yuzu-c93c5a72bb46796e898f54a7c13dfb8d941ddd4d.tar.zst
yuzu-c93c5a72bb46796e898f54a7c13dfb8d941ddd4d.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/svc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 4189d75ac..0a2b474ee 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -227,7 +227,8 @@ static ResultCode ConnectToPort(Handle* out_handle, const char* port_name) {
auto client_port = it->second;
// Connect to the port and retrieve the client endpoint of the connection Session.
- auto client_session = client_port->Connect();
+ SharedPtr<Kernel::ClientSession> client_session;
+ CASCADE_RESULT(client_session, client_port->Connect());
// Note: Threads do not wait for the server endpoint to call
// AcceptSession before returning from this call.