From f198dcf09b6cdc6a3916145054244156f11b78f0 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Wed, 30 May 2007 22:42:03 +0100 Subject: [PATCH] widl: A structure with variance, but without conformance should be a complex struct instead of a conformant, varying struct. --- tools/widl/parser.y | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 27ac1c643c3..80e3ff71f85 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -1622,7 +1622,12 @@ static int get_struct_type(var_list_t *fields) } if( has_variance ) - return RPC_FC_CVSTRUCT; + { + if ( has_conformance ) + return RPC_FC_CVSTRUCT; + else + return RPC_FC_BOGUS_STRUCT; + } if( has_conformance && has_pointer ) return RPC_FC_CPSTRUCT; if( has_conformance )