From ecd3780cc02f15e9fc3f5d4b28505fc9b2caee9f Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Wed, 17 May 2006 14:45:55 +0100 Subject: [PATCH] rpcrt4: Raise an exception if there is no default handler for a union. --- dlls/rpcrt4/ndr_marshall.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c index 312af8f20e0..67e7ab0f162 100644 --- a/dlls/rpcrt4/ndr_marshall.c +++ b/dlls/rpcrt4/ndr_marshall.c @@ -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; } }