dbghelp: Expose compiland's children in SymGetTypeInfo().

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-10-06 10:00:47 +02:00 committed by Alexandre Julliard
parent 15d526d81e
commit 8e50fea66b
1 changed files with 4 additions and 0 deletions

View File

@ -549,6 +549,7 @@ BOOL symt_get_info(struct module* module, const struct symt* type,
switch (type->tag)
{
case SymTagCompiland: v = &((const struct symt_compiland*)type)->vchildren; break;
case SymTagUDT: v = &((const struct symt_udt*)type)->vchildren; break;
case SymTagEnum: v = &((const struct symt_enum*)type)->vchildren; break;
case SymTagFunctionType: v = &((const struct symt_function_signature*)type)->vchildren; break;
@ -594,6 +595,9 @@ BOOL symt_get_info(struct module* module, const struct symt* type,
case TI_GET_CHILDRENCOUNT:
switch (type->tag)
{
case SymTagCompiland:
X(DWORD) = vector_length(&((const struct symt_compiland*)type)->vchildren);
break;
case SymTagUDT:
X(DWORD) = vector_length(&((const struct symt_udt*)type)->vchildren);
break;