diff options
| author | 2016-12-05 13:59:57 -0500 | |
|---|---|---|
| committer | 2016-12-05 13:59:57 -0500 | |
| commit | c93c5a72bb46796e898f54a7c13dfb8d941ddd4d (patch) | |
| tree | 1e5bded69840948daaa8b27bcba05a14b38dcb75 /src/core/hle/svc.cpp | |
| parent | HLE: Use a member variable instead of a virtual function to retrieve the max ... (diff) | |
| download | yuzu-c93c5a72bb46796e898f54a7c13dfb8d941ddd4d.tar.gz yuzu-c93c5a72bb46796e898f54a7c13dfb8d941ddd4d.tar.xz yuzu-c93c5a72bb46796e898f54a7c13dfb8d941ddd4d.zip | |
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) { | |||
| 227 | auto client_port = it->second; | 227 | auto client_port = it->second; |
| 228 | 228 | ||
| 229 | // Connect to the port and retrieve the client endpoint of the connection Session. | 229 | // Connect to the port and retrieve the client endpoint of the connection Session. |
| 230 | auto client_session = client_port->Connect(); | 230 | SharedPtr<Kernel::ClientSession> client_session; |
| 231 | CASCADE_RESULT(client_session, client_port->Connect()); | ||
| 231 | 232 | ||
| 232 | // Note: Threads do not wait for the server endpoint to call | 233 | // Note: Threads do not wait for the server endpoint to call |
| 233 | // AcceptSession before returning from this call. | 234 | // AcceptSession before returning from this call. |