rpcrt4: Raise an exception if there is no default handler for a union.
This commit is contained in:
parent
c1c5f14839
commit
ecd3780cc0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue