oleview: The PSDK's ELEMDESC cannot be used with compilers that don't support nameless unions. So define our own structure so the test compiles with both the Wine and the PSDK headers.

Alexandre Julliard julliard at winehq.org
Fri Oct 20 07:03:17 CDT 2006


Francois Gouget <fgouget at free.fr> writes:

> @@ -537,7 +547,7 @@ int EnumFuncs(ITypeInfo *pTypeInfo, int 
>              }
>              bFirst = TRUE;
>  #define ENUM_PARAM_FLAG(x)\
> -            if(pFuncDesc->lprgelemdescParam[j].paramdesc.wParamFlags & x)\
> +            if(((myELEMDESC*)&(pFuncDesc->lprgelemdescParam[j]))->u.paramdesc.wParamFlags & x) \
>              {\

Why can't you use U(x) instead?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list