From 1e9faabe8e5fafd5b818b3afe86d1af8c5b90c71 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 20 Jan 2011 06:54:28 +0000 Subject: [PATCH] - fail when no known op are given --- ext/com_dotnet/com_variant.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c index 43411be941..882100af62 100644 --- a/ext/com_dotnet/com_variant.c +++ b/ext/com_dotnet/com_variant.c @@ -593,6 +593,9 @@ static void variant_binary_operation(enum variant_binary_opcode op, INTERNAL_FUN case VOP_XOR: result = VarXor(vleft, vright, &vres); break; + /*Let say it fails as no valid op has been given */ + default: + result = E_INVALIDARG; } if (SUCCEEDED(result)) { -- 2.40.0