Commit a5c6cd5a authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Only reply to offset requests on symt_data in SymGetTypeInfo() for locals and parameters.

parent d2a5f434
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment