Commit 2a64e751 authored by Alexandre Julliard's avatar Alexandre Julliard

winedbg: Fix incorrect pointer casts.

parent dd016c03
......@@ -770,8 +770,7 @@ static BOOL be_i386_remove_Xpoint(HANDLE hProcess, const struct be_process_io* p
if (size != 0) return FALSE;
if (!pio->read(hProcess, addr, &ch, 1, &sz) || sz != 1) return FALSE;
if (ch != (unsigned char)0xCC)
WINE_FIXME("Cannot get back %02x instead of 0xCC at %08lx\n",
ch, (unsigned long)addr);
WINE_FIXME("Cannot get back %02x instead of 0xCC at %p\n", ch, addr);
ch = (unsigned char)val;
if (!pio->write(hProcess, addr, &ch, 1, &sz) || sz != 1) return FALSE;
break;
......
......@@ -1230,7 +1230,7 @@ static void db_print_address(const char *seg, int size, struct i_addr *addrp, in
} else if (!dbg_read_memory(a1, &a2, sizeof(a2))) {
dbg_printf("(invalid destination)");
} else {
db_task_printsym((unsigned long)a1, 0);
db_task_printsym((ULONG_PTR)a1, 0);
}
}
else
......
......@@ -984,7 +984,7 @@ void info_win32_exception(void)
dbg_printf(" in 16-bit code (%04x:%04x)", addr.Segment, (unsigned) addr.Offset);
break;
case AddrMode1632:
dbg_printf(" in segmented 32-bit code (%04x:%08lx)", addr.Segment, (unsigned long) addr.Offset);
dbg_printf(" in segmented 32-bit code (%04x:%08x)", addr.Segment, (unsigned) addr.Offset);
break;
default: dbg_printf(" bad address");
}
......
......@@ -301,7 +301,7 @@ static void fetch_module_name(void* name_addr, BOOL unicode, void* mod_addr,
snprintfW(buffer, bufsz, pcspid, dbg_curr_pid);
}
else
snprintfW(buffer, bufsz, dlladdr, (unsigned long)mod_addr);
snprintfW(buffer, bufsz, dlladdr, (ULONG_PTR)mod_addr);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment