widl: An ENUM16 is 32-bit wide in memory.
This commit is contained in:
parent
f6d2b49145
commit
d375d25d65
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue