[DBGHELP] Fix 64 bit issue

This commit is contained in:
Timo Kreuzer 2019-04-07 18:17:18 +02:00
parent f9a967b2ae
commit c2e16abc91
2 changed files with 8 additions and 0 deletions

View file

@ -151,7 +151,11 @@ struct location
{
unsigned kind : 8,
reg;
#ifndef __REACTOS__
unsigned long offset;
#else
uintptr_t offset;
#endif
};
struct symt

View file

@ -948,7 +948,11 @@ static BOOL dwarf2_compute_location_attr(dwarf2_parse_context_t* ctx,
sizeof(unsigned) + xloc.u.block.size);
*ptr = xloc.u.block.size;
memcpy(ptr + 1, xloc.u.block.ptr, xloc.u.block.size);
#ifndef __REACTOS__
loc->offset = (unsigned long)ptr;
#else
loc->offset = (uintptr_t)ptr;
#endif
}
}
return TRUE;