diff options
author | Subv <subv2112@gmail.com> | 2016-12-05 13:59:57 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2016-12-05 13:59:57 -0500 |
commit | c93c5a72bb46796e898f54a7c13dfb8d941ddd4d (patch) | |
tree | 1e5bded69840948daaa8b27bcba05a14b38dcb75 /src/core/hle/svc.cpp | |
parent | 61a2fe8c3bcd5e6dc7e97945b923d1a5bd8099ec (diff) |
Return an error code when connecting to a saturated port.
The error code was taken from the 3DS kernel.
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r-- | src/core/hle/svc.cpp | 3 |
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. |