summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-24 20:23:36 +0200
committerLioncash <mathew1800@gmail.com>2018-10-24 20:23:38 +0200
commitb703aba622d1d34df06a294610fb2cfe23df9e63 (patch)
treef3a61c092272b207a5c4fc026847fa74c006e421 /src/core
parentkernel/error: Remove leftover 3DS error codes (diff)
downloadyuzu-b703aba622d1d34df06a294610fb2cfe23df9e63.tar
yuzu-b703aba622d1d34df06a294610fb2cfe23df9e63.tar.gz
yuzu-b703aba622d1d34df06a294610fb2cfe23df9e63.tar.bz2
yuzu-b703aba622d1d34df06a294610fb2cfe23df9e63.tar.lz
yuzu-b703aba622d1d34df06a294610fb2cfe23df9e63.tar.xz
yuzu-b703aba622d1d34df06a294610fb2cfe23df9e63.tar.zst
yuzu-b703aba622d1d34df06a294610fb2cfe23df9e63.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/errors.h2
-rw-r--r--src/core/hle/kernel/server_port.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/kernel/errors.h b/src/core/hle/kernel/errors.h
index 01e4e4bad..92436ae6d 100644
--- a/src/core/hle/kernel/errors.h
+++ b/src/core/hle/kernel/errors.h
@@ -69,7 +69,5 @@ constexpr ResultCode ERR_NOT_AUTHORIZED(-1);
constexpr ResultCode ERR_INVALID_HANDLE_OS(-1);
constexpr ResultCode ERR_NOT_FOUND(ErrorModule::Kernel, ErrCodes::NoSuchEntry);
constexpr ResultCode RESULT_TIMEOUT(ErrorModule::Kernel, ErrCodes::Timeout);
-/// Returned when Accept() is called on a port with no sessions to be accepted.
-constexpr ResultCode ERR_NO_PENDING_SESSIONS(-1);
} // namespace Kernel
diff --git a/src/core/hle/kernel/server_port.cpp b/src/core/hle/kernel/server_port.cpp
index 3792e3e18..2c98d3c38 100644
--- a/src/core/hle/kernel/server_port.cpp
+++ b/src/core/hle/kernel/server_port.cpp
@@ -18,7 +18,7 @@ ServerPort::~ServerPort() = default;
ResultVal<SharedPtr<ServerSession>> ServerPort::Accept() {
if (pending_sessions.empty()) {
- return ERR_NO_PENDING_SESSIONS;
+ return ERR_NOT_FOUND;
}
auto session = std::move(pending_sessions.back());