mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 18:11:01 +00:00
dbghelp: Only reply to offset requests on symt_data in SymGetTypeInfo() for locals and parameters.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
parent
d2a5f434c4
commit
a5c6cd5aef
|
@ -939,7 +939,13 @@ BOOL symt_get_info(struct module* module, const struct symt* type,
|
|||
{
|
||||
case DataIsParam:
|
||||
case DataIsLocal:
|
||||
X(ULONG) = ((const struct symt_data*)type)->u.var.offset;
|
||||
{
|
||||
struct location loc = ((const struct symt_data*)type)->u.var;
|
||||
if (loc.kind == loc_register || loc.kind == loc_regrel)
|
||||
X(ULONG) = ((const struct symt_data*)type)->u.var.offset;
|
||||
else
|
||||
return FALSE; /* FIXME perhaps do better with local context? */
|
||||
}
|
||||
break;
|
||||
case DataIsMember:
|
||||
X(ULONG) = ((const struct symt_data*)type)->u.member.offset;
|
||||
|
|
Loading…
Reference in a new issue