Commit b960e6f8 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

webservices: Don't validate reader state in read_endelement.

parent 417ac65e
......@@ -1101,16 +1101,6 @@ static HRESULT read_endelement( struct reader *reader )
WS_XML_STRING *prefix, *localname;
HRESULT hr;
switch (reader->state)
{
case READER_STATE_TEXT:
case READER_STATE_STARTELEMENT:
case READER_STATE_STARTENDELEMENT:
break;
default:
return WS_E_INVALID_FORMAT;
}
if (read_cmp( reader, "</", 2 )) return WS_E_INVALID_FORMAT;
read_skip( reader, 2 );
......
......@@ -885,7 +885,7 @@ static void test_WsReadStartElement(void)
if (node) ok( node->nodeType == WS_XML_NODE_TYPE_END_ELEMENT, "got %u\n", node->nodeType );
hr = WsReadEndElement( reader, NULL );
todo_wine ok( hr == S_OK, "got %08x\n", hr );
ok( hr == S_OK, "got %08x\n", hr );
hr = WsGetReaderNode( reader, &node, NULL );
ok( hr == S_OK, "got %08x\n", hr );
......
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