rpcrt4: Allow enums as union switch types.

This commit is contained in:
Dan Hipschman 2007-06-25 18:26:42 -07:00 committed by Alexandre Julliard
parent 076a6206ff
commit ea7b1694de
1 changed files with 2 additions and 0 deletions

View File

@ -4414,9 +4414,11 @@ static ULONG get_discriminant(unsigned char fc, unsigned char *pMemory)
case RPC_FC_WCHAR:
case RPC_FC_SHORT:
case RPC_FC_USHORT:
case RPC_FC_ENUM16:
return *(USHORT *)pMemory;
case RPC_FC_LONG:
case RPC_FC_ULONG:
case RPC_FC_ENUM32:
return *(ULONG *)pMemory;
default:
FIXME("Unhandled base type: 0x%02x\n", fc);