From 4009eb1cd8edff47e0fbbcadc5a68778336b8b3a Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 22 Jun 2014 21:19:48 -0700 Subject: [PATCH] Fail out of XamContentCreateEnumerator. --- src/xenia/kernel/xam_content.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/xenia/kernel/xam_content.cc b/src/xenia/kernel/xam_content.cc index 97469d0ca..5f53bc4ea 100644 --- a/src/xenia/kernel/xam_content.cc +++ b/src/xenia/kernel/xam_content.cc @@ -44,6 +44,7 @@ SHIM_CALL XamContentGetLicenseMask_shim( } +// http://gameservice.googlecode.com/svn-history/r14/trunk/ContentManager.cpp SHIM_CALL XamContentCreateEnumerator_shim( PPCContext* ppc_state, KernelState* state) { uint32_t arg0 = SHIM_GET_ARG_32(0); @@ -52,12 +53,15 @@ SHIM_CALL XamContentCreateEnumerator_shim( uint32_t arg3 = SHIM_GET_ARG_32(3); uint32_t arg4 = SHIM_GET_ARG_32(4); uint32_t arg5 = SHIM_GET_ARG_32(5); - uint32_t arg6 = SHIM_GET_ARG_32(6); + uint32_t handle_ptr = SHIM_GET_ARG_32(6); XELOGD( "XamContentCreateEnumerator(%.8X, %.8X, %.8X, %.8X, %.8X, %.8X, %.8X)", - arg0, arg1, arg2, arg3, arg4, arg5, arg6); - SHIM_SET_RETURN_32(X_ERROR_DEVICE_NOT_CONNECTED); + arg0, arg1, arg2, arg3, arg4, arg5, handle_ptr); + + SHIM_SET_MEM_32(handle_ptr, X_INVALID_HANDLE_VALUE); + + SHIM_SET_RETURN_32(X_ERROR_NO_MORE_FILES); }