[PATCH 08/19] dbghelp: SymTagFunctionArgType's lexical parent is module, not SymTagFunctionType
Eric Pouech
eric.pouech at gmail.com
Wed Oct 6 03:01:24 CDT 2021
(as any other type)
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
dlls/dbghelp/dbghelp_private.h | 1 -
dlls/dbghelp/type.c | 5 +----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/dlls/dbghelp/dbghelp_private.h b/dlls/dbghelp/dbghelp_private.h
index 2fc5a7e5eca..474e76d52b6 100644
--- a/dlls/dbghelp/dbghelp_private.h
+++ b/dlls/dbghelp/dbghelp_private.h
@@ -294,7 +294,6 @@ struct symt_function_arg_type
{
struct symt symt;
struct symt* arg_type;
- struct symt* container;
};
struct symt_pointer
diff --git a/dlls/dbghelp/type.c b/dlls/dbghelp/type.c
index 221dbe68f42..fc6ae3f7350 100644
--- a/dlls/dbghelp/type.c
+++ b/dlls/dbghelp/type.c
@@ -411,7 +411,6 @@ BOOL symt_add_function_signature_parameter(struct module* module,
if (!arg) return FALSE;
arg->symt.tag = SymTagFunctionArgType;
arg->arg_type = param;
- arg->container = &sig_type->symt;
p = vector_add(&sig_type->vchildren, &module->pool);
if (!p) return FALSE; /* FIXME we leak arg */
*p = &arg->symt;
@@ -733,11 +732,9 @@ BOOL symt_get_info(struct module* module, const struct symt* type,
case SymTagThunk:
X(DWORD) = symt_ptr2index(module, ((const struct symt_thunk*)type)->container);
break;
- case SymTagFunctionArgType:
- X(DWORD) = symt_ptr2index(module, ((const struct symt_function_arg_type*)type)->container);
- break;
case SymTagUDT:
case SymTagEnum:
+ case SymTagFunctionArgType:
X(DWORD) = symt_ptr2index(module, &module->top->symt);
break;
default:
More information about the wine-devel
mailing list