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

webservices: Insert an end element node for self-closing tags in the reader.

parent 6449cb3b
...@@ -387,7 +387,6 @@ enum reader_state ...@@ -387,7 +387,6 @@ enum reader_state
READER_STATE_BOF, READER_STATE_BOF,
READER_STATE_STARTELEMENT, READER_STATE_STARTELEMENT,
READER_STATE_STARTATTRIBUTE, READER_STATE_STARTATTRIBUTE,
READER_STATE_STARTENDELEMENT,
READER_STATE_STARTCDATA, READER_STATE_STARTCDATA,
READER_STATE_CDATA, READER_STATE_CDATA,
READER_STATE_TEXT, READER_STATE_TEXT,
...@@ -987,8 +986,9 @@ static HRESULT read_element( struct reader *reader ) ...@@ -987,8 +986,9 @@ static HRESULT read_element( struct reader *reader )
if (!read_cmp( reader, "/>", 2 )) if (!read_cmp( reader, "/>", 2 ))
{ {
read_skip( reader, 2 ); read_skip( reader, 2 );
reader->current = reader->current->parent; if (!(node = alloc_node( WS_XML_NODE_TYPE_END_ELEMENT ))) return E_OUTOFMEMORY;
reader->state = READER_STATE_STARTENDELEMENT; read_insert_node( reader, reader->current, node );
reader->state = READER_STATE_ENDELEMENT;
} }
else else
{ {
......
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