[PATCH v2 1/2] stdole2.idl: Use more accurate sizes for Automation types.

Zebediah Figura z.figura12 at gmail.com
Mon Jun 4 17:59:33 CDT 2018


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 include/stdole2.idl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/stdole2.idl b/include/stdole2.idl
index 18c402a..d372384 100644
--- a/include/stdole2.idl
+++ b/include/stdole2.idl
@@ -32,15 +32,15 @@
 ]
 library stdole
 {
-	/* typedefs aren't stored in the type library.
-           These type names are known by the type compiler so it
-           doesn't really matter what we define them as. */
-
+    /* These typedefs need to have the same size as their real counterparts. */
     typedef short VARIANT_BOOL;
-    typedef long BSTR;
+    typedef void *BSTR;
     typedef double CURRENCY;
     typedef unsigned long HRESULT;
-    typedef void *VARIANT;
+    typedef struct {
+        short word1, word2, word3, word4;
+        void *ptr1, *ptr2;
+    } VARIANT;
     typedef unsigned long SCODE;
 
     typedef struct GUID {
-- 
2.7.4




More information about the wine-devel mailing list