V_DECIMAL macro is wrong
Gregg Mattinson
gm138242 at scot.canada.sun.com
Mon Jul 8 10:06:25 CDT 2002
This time, with the patch...sorry.
ChangeLog: include/oleauto.h
- Fixed V_DECIMAL macro to reflect where the decVal member is actually stored.
Gregg Mattinson
Co-op Developer
Sun Microsystems of Canada
-------------- next part --------------
Index: include/oleauto.h
===================================================================
RCS file: /opcom/comp/ws/wine/CVSROOT/wine/include/oleauto.h,v
retrieving revision 1.1
diff -u -r1.1 oleauto.h
--- /tmp/T0hoaGVK Mon Jul 8 10:59:21 2002
+++ oleauto.h Mon Jul 8 10:56:25 2002
@@ -180,8 +180,12 @@
#define V_ARRAY(A) V_UNION(A, parray)
#define V_ARRAYREF(A) V_UNION(A, pparray)
#define V_BYREF(A) V_UNION(A, byref)
-#define V_DECIMAL(A) V_UNION(A, decVal)
#define V_DECIMALREF(A) V_UNION(A, pdecVal)
+#if (__STDC__ && !defined(_FORCENAMELESSUNION)) || defined(NONAMELESSUNION)
+#define V_DECIMAL(A) ((A)->n1.decVal)
+#else
+#define V_DECIMAL(A) ((A)->decVal)
+#endif
/*
* VARIANT API
More information about the wine-patches
mailing list