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

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2016-02-10 15:02:01 +01:00 committed by Alexandre Julliard
parent 6449cb3b67
commit fe65b87dac
1 changed files with 3 additions and 3 deletions

View File

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