Fixed cast for %p.

This commit is contained in:
gibbed 2014-01-17 19:17:01 -08:00
parent 4fa3efd2b6
commit 5cdae4cee4
2 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ SHIM_CALL DbgPrint_shim(
uint32_t value = arg_index < 7 uint32_t value = arg_index < 7
? SHIM_GET_ARG_32(1 + arg_index) ? SHIM_GET_ARG_32(1 + arg_index)
: (uint32_t)SHIM_MEM_64(SHIM_GPR_32(1) + 16 + ((1 + arg_index) * 8)); : (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); int result = sprintf(b, local, pointer);
b += result; b += result;
arg_index++; arg_index++;

View File

@ -219,7 +219,7 @@ SHIM_CALL _vsnprintf_shim(
XEASSERT(arg_size == 4); XEASSERT(arg_size == 4);
if (arg_extras == 0) { if (arg_extras == 0) {
uint32_t value = (uint32_t)SHIM_MEM_64(arg_ptr + (arg_index * 8)); // TODO: check if this is correct... 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); int result = sprintf(b, local, pointer);
b += result; b += result;
arg_index++; arg_index++;
@ -444,7 +444,7 @@ SHIM_CALL _vswprintf_shim(
XEASSERT(arg_size == 4); XEASSERT(arg_size == 4);
if (arg_extras == 0) { if (arg_extras == 0) {
uint32_t value = (uint32_t)SHIM_MEM_64(arg_ptr + (arg_index * 8)); // TODO: check if this is correct... 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); int result = wsprintf(b, local, pointer);
b += result; b += result;
arg_index++; arg_index++;