diff --git a/src/xenia/kernel/xboxkrnl_debug.cc b/src/xenia/kernel/xboxkrnl_debug.cc index b2a58952d..05c5c99f4 100644 --- a/src/xenia/kernel/xboxkrnl_debug.cc +++ b/src/xenia/kernel/xboxkrnl_debug.cc @@ -221,7 +221,7 @@ SHIM_CALL DbgPrint_shim( uint32_t value = arg_index < 7 ? SHIM_GET_ARG_32(1 + arg_index) : (uint32_t)SHIM_MEM_64(SHIM_GPR_32(1) + 16 + ((1 + arg_index) * 8)); - const char *pointer = (const char *)SHIM_MEM_ADDR(value); + const void *pointer = (const void *)SHIM_MEM_ADDR(value); int result = sprintf(b, local, pointer); b += result; arg_index++; diff --git a/src/xenia/kernel/xboxkrnl_strings.cc b/src/xenia/kernel/xboxkrnl_strings.cc index c95e1d1af..bbc3e3995 100644 --- a/src/xenia/kernel/xboxkrnl_strings.cc +++ b/src/xenia/kernel/xboxkrnl_strings.cc @@ -219,7 +219,7 @@ SHIM_CALL _vsnprintf_shim( XEASSERT(arg_size == 4); if (arg_extras == 0) { uint32_t value = (uint32_t)SHIM_MEM_64(arg_ptr + (arg_index * 8)); // TODO: check if this is correct... - const char* pointer = (const char*)SHIM_MEM_ADDR(value); + const void* pointer = (const void*)SHIM_MEM_ADDR(value); int result = sprintf(b, local, pointer); b += result; arg_index++; @@ -444,7 +444,7 @@ SHIM_CALL _vswprintf_shim( XEASSERT(arg_size == 4); if (arg_extras == 0) { uint32_t value = (uint32_t)SHIM_MEM_64(arg_ptr + (arg_index * 8)); // TODO: check if this is correct... - const char* pointer = (const char*)SHIM_MEM_ADDR(value); + const void* pointer = (void*)SHIM_MEM_ADDR(value); int result = wsprintf(b, local, pointer); b += result; arg_index++;