msxml3: Implement IXMLParser GetParserState.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3d8efb2388
commit
a9115b36c6
|
@ -144,6 +144,9 @@ static void create_test(void)
|
|||
hr = IXMLParser_SetFlags(parser, 0);
|
||||
ok(hr == S_OK, "Expected S_OK got 0x%08x\n", hr);
|
||||
|
||||
hr = IXMLParser_GetParserState(parser);
|
||||
ok(hr == XMLPARSER_IDLE, "got 0x%08x\n", hr);
|
||||
|
||||
IXMLParser_Release(parser);
|
||||
}
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ typedef struct _xmlparser
|
|||
LONG ref;
|
||||
|
||||
int flags;
|
||||
XML_PARSER_STATE state;
|
||||
} xmlparser;
|
||||
|
||||
static inline xmlparser *impl_from_IXMLParser( IXMLParser *iface )
|
||||
|
@ -345,9 +346,9 @@ static HRESULT WINAPI xmlparser_GetParserState(IXMLParser *iface)
|
|||
{
|
||||
xmlparser *This = impl_from_IXMLParser( iface );
|
||||
|
||||
FIXME("(%p)\n", This);
|
||||
TRACE("(%p)\n", This);
|
||||
|
||||
return E_NOTIMPL;
|
||||
return This->state;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI xmlparser_Suspend(IXMLParser *iface)
|
||||
|
@ -447,6 +448,7 @@ HRESULT XMLParser_create(void **ppObj)
|
|||
This->nodefactory = NULL;
|
||||
This->input = NULL;
|
||||
This->flags = 0;
|
||||
This->state = XMLPARSER_IDLE;
|
||||
This->ref = 1;
|
||||
|
||||
*ppObj = &This->IXMLParser_iface;
|
||||
|
|
Loading…
Reference in New Issue