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

dbghelp: Support SymGetTypeInfo/TI_GET_LENGTH for variables.

parent 12f2a176
......@@ -833,10 +833,17 @@ BOOL symt_get_info(struct module* module, const struct symt* type,
return FALSE;
break;
case SymTagData:
if (((const struct symt_data*)type)->kind != DataIsMember ||
!((const struct symt_data*)type)->u.member.bit_length)
return FALSE;
X(DWORD64) = ((const struct symt_data*)type)->u.member.bit_length;
switch (((const struct symt_data*)type)->kind)
{
case DataIsMember:
if (!((const struct symt_data*)type)->u.member.bit_length)
return FALSE;
X(DWORD64) = ((const struct symt_data*)type)->u.member.bit_length;
break;
default:
if (!symt_get_info(module, ((const struct symt_data*)type)->type, TI_GET_LENGTH, pInfo))
return FALSE;
}
break;
case SymTagArrayType:
if (!symt_get_info(module, ((const struct symt_array*)type)->base_type,
......
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