From fe65b87dac3698f1062630ef3629538368840071 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Wed, 10 Feb 2016 15:02:01 +0100 Subject: [PATCH] webservices: Insert an end element node for self-closing tags in the reader. Signed-off-by: Hans Leidekker Signed-off-by: Alexandre Julliard --- dlls/webservices/reader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/webservices/reader.c b/dlls/webservices/reader.c index 1b3dd2f0839..664f183ea3a 100644 --- a/dlls/webservices/reader.c +++ b/dlls/webservices/reader.c @@ -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 {