dbghelp: SymTagFunctionArgType's lexical parent is module, not SymTagFunctionType.
(as any other type) Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f376dfd1fd
commit
dbcc714cef
|
@ -294,7 +294,6 @@ struct symt_function_arg_type
|
|||
{
|
||||
struct symt symt;
|
||||
struct symt* arg_type;
|
||||
struct symt* container;
|
||||
};
|
||||
|
||||
struct symt_pointer
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue