Rob Shearman : widl: A structure with variance, but without conformance should be a complex struct instead of a conformant , varying struct.
Module: wine Branch: master Commit: f198dcf09b6cdc6a3916145054244156f11b78f0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f198dcf09b6cdc6a3916145054... Author: Rob Shearman <rob(a)codeweavers.com> Date: Wed May 30 22:42:03 2007 +0100 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 files changed, 6 insertions(+), 1 deletions(-) diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 27ac1c6..80e3ff7 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 )
participants (1)
-
Alexandre Julliard