aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/errors.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-17 12:28:40 -0400
committerGitHub <noreply@github.com>2018-09-17 12:28:40 -0400
commitac108e62592238cbb6b07f1885cacee976dd4d89 (patch)
tree972e92167eaa5cc8d3c806adc8ebbe1034d69949 /src/core/hle/kernel/errors.h
parentd6c188f19d59d351aca523c7f619533cd76c502e (diff)
parent52fcbcf5001e2a5e9535fce019e3f58da08ced5d (diff)
Merge pull request #1313 from lioncash/error
kernel/errors: Amend error code for ERR_NOT_FOUND
Diffstat (limited to 'src/core/hle/kernel/errors.h')
-rw-r--r--src/core/hle/kernel/errors.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/errors.h b/src/core/hle/kernel/errors.h
index 2be2fad82f..8c2be2681e 100644
--- a/src/core/hle/kernel/errors.h
+++ b/src/core/hle/kernel/errors.h
@@ -30,6 +30,7 @@ enum {
SynchronizationCanceled = 118,
TooLarge = 119,
InvalidEnumValue = 120,
+ NoSuchEntry = 121,
InvalidState = 125,
ResourceLimitExceeded = 132,
};
@@ -65,7 +66,7 @@ constexpr ResultCode ERR_INVALID_OBJECT_ADDR(-1);
constexpr ResultCode ERR_NOT_AUTHORIZED(-1);
/// Alternate code returned instead of ERR_INVALID_HANDLE in some code paths.
constexpr ResultCode ERR_INVALID_HANDLE_OS(-1);
-constexpr ResultCode ERR_NOT_FOUND(-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);