From 54e9aa91103bf84c161192ee1c2fa3c59267a11e Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 20 Jan 2011 06:58:04 +0000 Subject: [PATCH] - fail when no known op are given --- ext/com_dotnet/com_variant.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c index cb22f04fe5..bac3722b9d 100644 --- a/ext/com_dotnet/com_variant.c +++ b/ext/com_dotnet/com_variant.c @@ -755,6 +755,8 @@ static void variant_unary_operation(enum variant_unary_opcode op, INTERNAL_FUNCT case VOP_NOT: result = VarNot(vleft, &vres); break; + default: + result = E_INVALIDARG; } if (SUCCEEDED(result)) { -- 2.40.0