Eric Pouech : dbghelp: Return the correct length for an enumeration.
Alexandre Julliard
julliard at winehq.org
Mon Aug 30 15:53:52 CDT 2021
Module: wine
Branch: master
Commit: 62c06fc31c018880fc426d2c6a39b8390c2d79b6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=62c06fc31c018880fc426d2c6a39b8390c2d79b6
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Mon Aug 30 09:24:54 2021 +0200
dbghelp: Return the correct length for an enumeration.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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-cvs
mailing list