[PATCH 09/11] dbghelp: return the correct length for an enumeration

Eric Pouech eric.pouech at gmail.com
Mon Aug 30 02:24:54 CDT 2021


Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---
 dlls/dbghelp/type.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/dbghelp/type.c b/dlls/dbghelp/type.c
index da4fc1a0a9d..08fa8bad95e 100644
--- a/dlls/dbghelp/type.c
+++ b/dlls/dbghelp/type.c
@@ -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 ||




More information about the wine-devel mailing list