From 03d6de997c05e916c3aecb45f811ad4355d97a70 Mon Sep 17 00:00:00 2001 From: gibbed Date: Mon, 26 Nov 2018 07:33:21 -0600 Subject: [PATCH] [Kernel] Some titles seem to explicitly expect X_ERROR_FUNCTION_FAILED to mean no more files when enumerating content. --- src/xenia/kernel/xam/xam_info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/xam/xam_info.cc b/src/xenia/kernel/xam/xam_info.cc index f0af2f7b7..aa089927e 100644 --- a/src/xenia/kernel/xam/xam_info.cc +++ b/src/xenia/kernel/xam/xam_info.cc @@ -373,7 +373,7 @@ dword_result_t XamEnumerate(dword_t handle, dword_t flags, lpvoid_t buffer, if (actual_buffer_length < e->item_size()) { result = X_ERROR_INSUFFICIENT_BUFFER; } else if (e->current_item() >= e->item_count()) { - result = X_ERROR_NO_MORE_FILES; + result = X_ERROR_FUNCTION_FAILED; } else { auto item_buffer = buffer.as(); auto max_items = actual_buffer_length / e->item_size();