From ffbde17b3287b65906b087a0de3c3a72d8072c7f Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 8 Apr 2011 11:57:19 +0200 Subject: [PATCH] msxml3/tests: Fix variable initializations to conform to C89. --- dlls/msxml3/tests/domdoc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index 650f3d580f7..46a41884fbb 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -254,7 +254,7 @@ typedef struct IUnknown IUnknown_iface; } testsite_t; -static testsite_t testsite = { .IUnknown_iface.lpVtbl = &testsiteVtbl }; +static testsite_t testsite = { { &testsiteVtbl } }; /* test IHTMLElementCollection */ static HRESULT WINAPI htmlecoll_QueryInterface(IHTMLElementCollection *iface, REFIID riid, void **ppvObject) @@ -361,7 +361,7 @@ typedef struct IHTMLElementCollection IHTMLElementCollection_iface; } testhtmlecoll_t; -static testhtmlecoll_t htmlecoll = { .IHTMLElementCollection_iface.lpVtbl = &TestHTMLECollectionVtbl }; +static testhtmlecoll_t htmlecoll = { { &TestHTMLECollectionVtbl } }; /* test IHTMLDocument2 */ static HRESULT WINAPI htmldoc2_QueryInterface(IHTMLDocument2 *iface, REFIID riid, void **ppvObject) @@ -1203,7 +1203,7 @@ typedef struct IHTMLDocument2 IHTMLDocument2_iface; } testhtmldoc2_t; -static testhtmldoc2_t htmldoc2 = { .IHTMLDocument2_iface.lpVtbl = &TestHTMLDocumentVtbl }; +static testhtmldoc2_t htmldoc2 = { { &TestHTMLDocumentVtbl } }; static HRESULT WINAPI sp_QueryInterface(IServiceProvider *iface, REFIID riid, void **ppvObject) { @@ -1282,7 +1282,7 @@ static const IServiceProviderVtbl testprovVtbl = sp_QueryService }; -testprov_t testprov = { .IServiceProvider_iface.lpVtbl = &testprovVtbl }; +testprov_t testprov = { { &testprovVtbl } }; #define EXPECT_CHILDREN(node) _expect_children((IXMLDOMNode*)node, __LINE__) static void _expect_children(IXMLDOMNode *node, int line)