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 )