rpcrt4: Raise an exception if there is no default handler for a union.

This commit is contained in:
Robert Shearman 2006-05-17 14:45:55 +01:00 committed by Alexandre Julliard
parent c1c5f14839
commit ecd3780cc0
1 changed files with 3 additions and 2 deletions

View File

@ -3526,12 +3526,13 @@ static PFORMAT_STRING get_arm_offset_from_union_arm_selector(PMIDL_STUB_MESSAGE
{
if(type == 0xffff)
{
FIXME("should raise an exception here\n");
ERR("no arm for 0x%lx and no default case\n", discriminant);
RpcRaiseException(RPC_S_INVALID_TAG);
return NULL;
}
if(type == 0)
{
/* Don't marshall any type. FIXME is this correct? */
TRACE("falling back to empty default case for 0x%lx\n", discriminant);
return NULL;
}
}