stdole2: Avoid defining Automation typedefs as part of the public library.

This fixes a regression introduced by 70e5d5fd2e.

If the VARIANT struct is defined inside the library block, widl generates
typeinfo for it at index 0. This confuses typelibs that import stdole2.tlb.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45949
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Zebediah Figura 2018-11-18 14:35:51 -06:00 committed by Alexandre Julliard
parent 2ef62f9085
commit 247ae9838f
1 changed files with 11 additions and 11 deletions

View File

@ -25,13 +25,6 @@
#include <olectl.h>
[
uuid(00020430-0000-0000-C000-000000000046),
version(2.0),
helpstring("OLE Automation")
]
library stdole
{
/* These typedefs need to have the same size as their real counterparts. */
typedef short VARIANT_BOOL;
typedef void *BSTR;
@ -43,6 +36,13 @@ library stdole
} VARIANT;
typedef unsigned long SCODE;
[
uuid(00020430-0000-0000-C000-000000000046),
version(2.0),
helpstring("OLE Automation")
]
library stdole
{
typedef struct GUID {
unsigned long Data1;
unsigned short Data2;