Author: akhaldi
Date: Tue Nov 17 11:07:59 2015
New Revision: 69912
URL:
http://svn.reactos.org/svn/reactos?rev=69912&view=rev
Log:
[PSDK] Update oleauto.h. CORE-10536
Modified:
trunk/reactos/include/psdk/oleauto.h
Modified: trunk/reactos/include/psdk/oleauto.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/oleauto.h?rev…
==============================================================================
--- trunk/reactos/include/psdk/oleauto.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/oleauto.h [iso-8859-1] Tue Nov 17 11:07:59 2015
@@ -203,11 +203,15 @@
/* Macros for accessing the fields of the VARIANT type */
#if (__STDC__ && !defined(_FORCENAMELESSUNION)) || defined(NONAMELESSUNION)
-#define V_UNION(A,B) ((A)->n1.n2.n3.B)
-#define V_VT(A) ((A)->n1.n2.vt)
+#define V_VT(A) ((A)->n1.n2.vt)
+#define V_UNION(A,B) ((A)->n1.n2.n3.B)
+#define V_RECORD(A) (V_UNION(A,brecVal).pvRecord)
+#define V_RECORDINFO(A) (V_UNION(A,brecVal).pRecInfo)
#else
-#define V_UNION(A,B) ((A)->B)
-#define V_VT(A) ((A)->vt)
+#define V_VT(A) ((A)->vt)
+#define V_UNION(A,B) ((A)->B)
+#define V_RECORD(A) ((A)->pvRecord)
+#define V_RECORDINFO(A) ((A)->pRecInfo)
#endif
#define V_ISBYREF(A) (V_VT(A) & VT_BYREF)