Commit 25e1fb45 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

widl: Fix missing support for struct / union parameterized type replacement.

And we can just pass them through, as with other class types. This fixes widl not accepting EventRegistrationToken method argument type in a parameterized type. Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com>
parent 82c30480
......@@ -1157,6 +1157,9 @@ static type_t *replace_type_parameters_in_type(type_t *type, typeref_list_t *ori
case TYPE_INTERFACE:
case TYPE_RUNTIMECLASS:
case TYPE_DELEGATE:
case TYPE_STRUCT:
case TYPE_ENCAPSULATED_UNION:
case TYPE_UNION:
return type;
case TYPE_PARAMETER:
if (!orig || !repl) return NULL;
......@@ -1194,9 +1197,6 @@ static type_t *replace_type_parameters_in_type(type_t *type, typeref_list_t *ori
if (t->type_type != TYPE_PARAMETERIZED_TYPE) return find_parameterized_type(type, repl);
repl = replace_type_parameters_in_type_list(type->details.parameterized.params, orig, repl);
return replace_type_parameters_in_type(t, t->details.parameterized.params, repl);
case TYPE_STRUCT:
case TYPE_ENCAPSULATED_UNION:
case TYPE_UNION:
case TYPE_MODULE:
case TYPE_COCLASS:
case TYPE_APICONTRACT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment