oleview: Fix compilation on systems that don't support nameless unions.

Francois Gouget fgouget at free.fr
Sat Mar 3 19:00:13 CST 2007


---

This fixes compilation with gcc 2.95.

 programs/oleview/typelib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/oleview/typelib.c b/programs/oleview/typelib.c
index 49568bb..b417c57 100644
--- a/programs/oleview/typelib.c
+++ b/programs/oleview/typelib.c
@@ -470,7 +470,7 @@ int EnumEnums(ITypeInfo *pTypeInfo, int cVars, HTREEITEM hParent)
         {
             VARIANT var;
             VariantInit(&var);
-            if (VariantChangeType(&var, pVarDesc->lpvarValue, 0, VT_BSTR) == S_OK)
+            if (VariantChangeType(&var, U(*pVarDesc).lpvarValue, 0, VT_BSTR) == S_OK)
             {
                 AddToStrW(wszText, wszConst);
                 AddToStrW(wszText, wszSpace);
-- 
1.4.4.4



More information about the wine-patches mailing list