Fixed some additional stack offsets in DbgPrint.

This commit is contained in:
Rick Gibbed 2013-06-02 10:12:27 -07:00
parent e5bfe7264b
commit eab588f29f
1 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ SHIM_CALL DbgPrint_shim(
if (arg_extras == 0) {
uint64_t value = arg_index < 7
? SHIM_GET_ARG_64(1 + arg_index)
: SHIM_MEM_32(SHIM_GPR_32(1) + 24 + ((1 + arg_index) * 8));
: SHIM_MEM_32(SHIM_GPR_32(1) + 16 + ((1 + arg_index) * 8));
int result = sprintf(b, local, value);
b += result;
arg_index++;
@ -187,7 +187,7 @@ SHIM_CALL DbgPrint_shim(
if (arg_extras == 0) {
uint64_t value = arg_index < 7
? SHIM_GET_ARG_64(1 + arg_index)
: SHIM_MEM_32(SHIM_GPR_32(1) + 24 + ((1 + arg_index) * 8));
: SHIM_MEM_32(SHIM_GPR_32(1) + 16 + ((1 + arg_index) * 8));
int result = sprintf(b, local, (uint32_t)value);
b += result;
arg_index++;