summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/handle_table.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-11 20:41:48 +0200
committerbunnei <bunneidev@gmail.com>2021-05-06 01:40:51 +0200
commit269d233a9421e43c2383fe29603b3dfbdaa900e9 (patch)
tree7bcfd27ba2a9eee20d696307240108f40320ae04 /src/core/hle/kernel/handle_table.cpp
parenthle: kernel: KThread: Add missing resource hint release. (diff)
downloadyuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar
yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar.gz
yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar.bz2
yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar.lz
yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar.xz
yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar.zst
yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/handle_table.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cpp
index cc3210ef2..adfcd3c5b 100644
--- a/src/core/hle/kernel/handle_table.cpp
+++ b/src/core/hle/kernel/handle_table.cpp
@@ -68,7 +68,7 @@ ResultVal<Handle> HandleTable::Create(Object* obj) {
const u16 slot = next_free_slot;
if (slot >= table_size) {
LOG_ERROR(Kernel, "Unable to allocate Handle, too many slots in use.");
- return ResultHandleTableFull;
+ return ResultOutOfHandles;
}
next_free_slot = generations[slot];
@@ -93,7 +93,7 @@ ResultCode HandleTable::Add(Handle* out_handle, KAutoObject* obj, u16 type) {
const u16 slot = next_free_slot;
if (slot >= table_size) {
LOG_ERROR(Kernel, "Unable to allocate Handle, too many slots in use.");
- return ResultHandleTableFull;
+ return ResultOutOfHandles;
}
next_free_slot = generations[slot];