Fixed cast for %p.
This commit is contained in:
parent
4fa3efd2b6
commit
5cdae4cee4
|
@ -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++;
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue