aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/handle_table.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-25 05:44:51 -0400
committerLioncash <mathew1800@gmail.com>2018-08-25 09:40:21 -0400
commitce900c1cb8ba10069bcff77526edb33e4ebb1aa5 (patch)
treeebec2110b01f8a243d0834828ebad7ef50ab5ac1 /src/core/hle/kernel/handle_table.cpp
parentd97ec0683f74159c192a7907cd600e2370e5e8e1 (diff)
kernel/error: Add error code for the handle table being full
This replaces the lingering 3DS constant with the proper one, and utilizes it within HandleTable's Create() member function.
Diffstat (limited to 'src/core/hle/kernel/handle_table.cpp')
-rw-r--r--src/core/hle/kernel/handle_table.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cpp
index 28e21428a5..6d9f7a02bb 100644
--- a/src/core/hle/kernel/handle_table.cpp
+++ b/src/core/hle/kernel/handle_table.cpp
@@ -26,7 +26,7 @@ ResultVal<Handle> HandleTable::Create(SharedPtr<Object> obj) {
u16 slot = next_free_slot;
if (slot >= generations.size()) {
LOG_ERROR(Kernel, "Unable to allocate Handle, too many slots in use.");
- return ERR_OUT_OF_HANDLES;
+ return ERR_HANDLE_TABLE_FULL;
}
next_free_slot = generations[slot];