mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 14:14:46 +00:00
dbghelp: Remove superfluous casts to self.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
052113c0b6
commit
e1e761d55f
|
@ -3167,7 +3167,7 @@ static ULONG_PTR eval_expression(const struct module* module, struct cpu_stack_w
|
|||
case 1: stack[sp] = *(unsigned char*)&tmp; break;
|
||||
case 2: stack[sp] = *(unsigned short*)&tmp; break;
|
||||
case 4: stack[sp] = *(unsigned int*)&tmp; break;
|
||||
case 8: stack[sp] = *(ULONG_PTR*)&tmp; break; /* FIXME: won't work on 32bit platform */
|
||||
case 8: stack[sp] = tmp; break; /* FIXME: won't work on 32bit platform */
|
||||
default: FIXME("Unknown size for deref 0x%lx\n", sz);
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -677,7 +677,7 @@ BOOL image_check_alternate(struct image_file_map* fmap, const struct module* mod
|
|||
const char* dbg_link;
|
||||
|
||||
found = TRUE;
|
||||
dbg_link = (const char*)image_map_section(&debuglink_sect);
|
||||
dbg_link = image_map_section(&debuglink_sect);
|
||||
if (dbg_link != IMAGE_NO_MAP)
|
||||
{
|
||||
/* The content of a debug link section is:
|
||||
|
|
|
@ -428,7 +428,7 @@ static BOOL pe_load_coff_symbol_table(struct module* module)
|
|||
if (!fmap->u.pe.ntheader.FileHeader.PointerToSymbolTable || !numsym)
|
||||
return TRUE;
|
||||
if (!(mapping = pe_map_full(fmap, NULL))) return FALSE;
|
||||
isym = (const IMAGE_SYMBOL*)((const char*)mapping + fmap->u.pe.ntheader.FileHeader.PointerToSymbolTable);
|
||||
isym = (const IMAGE_SYMBOL*)(mapping + fmap->u.pe.ntheader.FileHeader.PointerToSymbolTable);
|
||||
/* FIXME: no way to get strtable size */
|
||||
strtable = (const char*)&isym[numsym];
|
||||
sect = IMAGE_FIRST_SECTION(RtlImageNtHeader((HMODULE)mapping));
|
||||
|
|
Loading…
Reference in a new issue