From 592b1974f2ff0a7c719c07573455bbc2668f72fd Mon Sep 17 00:00:00 2001 From: gibbed Date: Mon, 20 Jan 2014 06:08:49 -0800 Subject: [PATCH] Corrected stack access in XamUserReadProfileSettings. --- src/xenia/kernel/xam_user.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/xam_user.cc b/src/xenia/kernel/xam_user.cc index 169ab24d0..ebe48c2cb 100644 --- a/src/xenia/kernel/xam_user.cc +++ b/src/xenia/kernel/xam_user.cc @@ -122,7 +122,7 @@ SHIM_CALL XamUserReadProfileSettings_shim( uint32_t buffer_size_ptr = SHIM_GET_ARG_32(6); uint32_t buffer_ptr = SHIM_GET_ARG_32(7); // arg8 is in stack! - uint64_t sp = ppc_state->r[1]; + uint32_t sp = (uint32_t)ppc_state->r[1]; uint32_t overlapped_ptr = SHIM_MEM_32(sp + 0x54); uint32_t buffer_size = SHIM_MEM_32(buffer_size_ptr);