mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
widl: Fix the types of enums with the v1_enum attribute applied.
This commit is contained in:
parent
b3dde47ed7
commit
4997f1849b
@ -1479,6 +1479,14 @@ static void set_type(var_t *v, decl_spec_t *decl_spec, const declarator_t *decl,
|
|||||||
error_loc("'%s': [string] attribute applied to non-pointer, non-array type\n",
|
error_loc("'%s': [string] attribute applied to non-pointer, non-array type\n",
|
||||||
v->name);
|
v->name);
|
||||||
|
|
||||||
|
if (is_attr(v->attrs, ATTR_V1ENUM))
|
||||||
|
{
|
||||||
|
if (v->type->type == RPC_FC_ENUM16)
|
||||||
|
v->type->type = RPC_FC_ENUM32;
|
||||||
|
else
|
||||||
|
error_loc("'%s': [v1_enum] attribute applied to non-enum type\n", v->name);
|
||||||
|
}
|
||||||
|
|
||||||
sizeless = FALSE;
|
sizeless = FALSE;
|
||||||
if (arr) LIST_FOR_EACH_ENTRY_REV(dim, arr, expr_t, entry)
|
if (arr) LIST_FOR_EACH_ENTRY_REV(dim, arr, expr_t, entry)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user