winedbg: Fix some pointer conversion warnings.

This commit is contained in:
Alexandre Julliard 2012-05-29 19:14:31 +02:00
parent 0675f5c3d1
commit d17bc39b1f
4 changed files with 4 additions and 5 deletions

View File

@ -561,8 +561,7 @@ static unsigned be_x86_64_remove_Xpoint(HANDLE hProcess, const struct be_process
if (size != 0) return 0; if (size != 0) return 0;
if (!pio->read(hProcess, addr, &ch, 1, &sz) || sz != 1) return 0; if (!pio->read(hProcess, addr, &ch, 1, &sz) || sz != 1) return 0;
if (ch != (unsigned char)0xCC) if (ch != (unsigned char)0xCC)
WINE_FIXME("Cannot get back %02x instead of 0xCC at %08lx\n", WINE_FIXME("Cannot get back %02x instead of 0xCC at %p\n", ch, addr);
ch, (unsigned long)addr);
ch = (unsigned char)val; ch = (unsigned char)val;
if (!pio->write(hProcess, addr, &ch, 1, &sz) || sz != 1) return 0; if (!pio->write(hProcess, addr, &ch, 1, &sz) || sz != 1) return 0;
break; break;

View File

@ -181,7 +181,7 @@ list_arg:
| pathname ':' identifier { symbol_get_line($1, $3, &$$); } | pathname ':' identifier { symbol_get_line($1, $3, &$$); }
| '*' expr_lvalue { DWORD disp; ADDRESS64 addr; $$.SizeOfStruct = sizeof($$); | '*' expr_lvalue { DWORD disp; ADDRESS64 addr; $$.SizeOfStruct = sizeof($$);
types_extract_as_address(&$2, &addr); types_extract_as_address(&$2, &addr);
SymGetLineFromAddr64(dbg_curr_process->handle, (unsigned long)memory_to_linear_addr(& addr), &disp, & $$); } SymGetLineFromAddr64(dbg_curr_process->handle, (ULONG_PTR)memory_to_linear_addr(& addr), &disp, & $$); }
; ;
run_command: run_command:

View File

@ -73,7 +73,7 @@ static void memory_report_invalid_addr(const void* addr)
address.Mode = AddrModeFlat; address.Mode = AddrModeFlat;
address.Segment = 0; address.Segment = 0;
address.Offset = (unsigned long)addr; address.Offset = (ULONG_PTR)addr;
dbg_printf("*** Invalid address "); dbg_printf("*** Invalid address ");
print_address(&address, FALSE); print_address(&address, FALSE);
dbg_printf(" ***\n"); dbg_printf(" ***\n");

View File

@ -67,7 +67,7 @@ LONGLONG types_extract_as_longlong(const struct dbg_lvalue* lvalue,
if (type.id == dbg_itype_segptr) if (type.id == dbg_itype_segptr)
{ {
return (long int)memory_to_linear_addr(&lvalue->addr); return (LONG_PTR)memory_to_linear_addr(&lvalue->addr);
} }
if (psize) *psize = 0; if (psize) *psize = 0;