From d029ce978e093ace8b627d8034c5fbd089929fb6 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 18 Jan 2014 08:18:25 -0800 Subject: [PATCH] Fixed NtWaitForSingleObjectEx. Third time's the charm? --- src/xenia/kernel/xboxkrnl_threading.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/kernel/xboxkrnl_threading.cc b/src/xenia/kernel/xboxkrnl_threading.cc index 59bb3d253..2b7450703 100644 --- a/src/xenia/kernel/xboxkrnl_threading.cc +++ b/src/xenia/kernel/xboxkrnl_threading.cc @@ -1112,8 +1112,8 @@ SHIM_CALL NtWaitForSingleObjectEx_shim( PPCContext* ppc_state, KernelState* state) { uint32_t object_handle = SHIM_GET_ARG_32(0); uint8_t wait_mode = SHIM_GET_ARG_8(1); - uint32_t alertable = SHIM_GET_ARG_32(3); - uint32_t timeout_ptr = SHIM_GET_ARG_32(4); + uint32_t alertable = SHIM_GET_ARG_32(2); + uint32_t timeout_ptr = SHIM_GET_ARG_32(3); XELOGD( "NtWaitForSingleObjectEx(%.8X, %u, %.1X, %.8X)",