Commit a9115b36 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msxml3: Implement IXMLParser GetParserState.

parent 3d8efb23
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment