dbghelp: Return the correct length for an enumeration.

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-08-30 09:24:54 +02:00 committed by Alexandre Julliard
parent 46c12b2971
commit 62c06fc31c
1 changed files with 2 additions and 1 deletions

View File

@ -663,7 +663,8 @@ BOOL symt_get_info(struct module* module, const struct symt* type,
X(DWORD64) = ((const struct symt_udt*)type)->size;
break;
case SymTagEnum:
X(DWORD64) = sizeof(int); /* FIXME: should be size of base-type of enum !!! */
if (!symt_get_info(module, ((const struct symt_enum*)type)->base_type, TI_GET_LENGTH, pInfo))
return FALSE;
break;
case SymTagData:
if (((const struct symt_data*)type)->kind != DataIsMember ||