Eric Pouech : dbghelp: SymTagFunctionArgType's lexical parent is module, not SymTagFunctionType.
Alexandre Julliard
julliard at winehq.org
Wed Oct 6 15:51:36 CDT 2021
Module: wine
Branch: master
Commit: dbcc714cef29d0d52dac9cd3b767e05ff1bd310d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=dbcc714cef29d0d52dac9cd3b767e05ff1bd310d
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Wed Oct 6 10:01:24 2021 +0200
dbghelp: SymTagFunctionArgType's lexical parent is module, not SymTagFunctionType.
(as any other type)
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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-cvs
mailing list