Commit d375d25d authored by Alexandre Julliard's avatar Alexandre Julliard

widl: An ENUM16 is 32-bit wide in memory.

parent f6d2b491
......@@ -1194,14 +1194,11 @@ unsigned int type_memsize(const type_t *t, unsigned int *align)
case TYPE_ENUM:
switch (get_enum_fc(t))
{
case RPC_FC_ENUM16:
case RPC_FC_ENUM32:
size = 4;
if (size > *align) *align = size;
break;
case RPC_FC_ENUM16:
size = 2;
if (size > *align) *align = size;
break;
default:
error("type_memsize: Unknown enum type\n");
size = 0;
......
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