mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 02:59:48 +00:00
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: Rémi Bernon <rbernon@codeweavers.com>
This commit is contained in:
parent
82c30480c9
commit
25e1fb45db
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue