dbghelp: Support SymGetTypeInfo/TI_GET_LENGTH for variables.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
Eric Pouech 2022-09-09 17:06:04 +02:00 committed by Alexandre Julliard
parent 12f2a1768c
commit d1f7bc7c05

View file

@ -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,