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

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 17 14:48:27 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: ecd3780cc02f15e9fc3f5d4b28505fc9b2caee9f
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=ecd3780cc02f15e9fc3f5d4b28505fc9b2caee9f

Author: Robert Shearman <rob at codeweavers.com>
Date:   Wed May 17 14:45:55 2006 +0100

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

---

 dlls/rpcrt4/ndr_marshall.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index 312af8f..67e7ab0 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -3526,12 +3526,13 @@ static PFORMAT_STRING get_arm_offset_fro
     {
         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;
         }
     }




More information about the wine-cvs mailing list