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

This commit is contained in:
Alexandre Julliard 2009-07-03 12:06:31 +02:00
parent f6d2b49145
commit d375d25d65
1 changed files with 1 additions and 4 deletions

View File

@ -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;