mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[DBGHELP] Fix 64 bit issue
This commit is contained in:
@@ -151,7 +151,11 @@ struct location
|
||||
{
|
||||
unsigned kind : 8,
|
||||
reg;
|
||||
#ifndef __REACTOS__
|
||||
unsigned long offset;
|
||||
#else
|
||||
uintptr_t offset;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct symt
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user