webservices: Fix return value in read_type_text.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2017-10-03 16:14:43 +02:00 committed by Alexandre Julliard
parent de139491f6
commit 0567952c70
1 changed files with 1 additions and 1 deletions

View File

@ -6216,7 +6216,7 @@ static HRESULT read_type_text( struct reader *reader, const WS_FIELD_DESCRIPTION
if (reader->current == reader->last)
{
BOOL found;
if ((hr = read_to_startelement( reader, &found )) != S_OK) return S_OK;
if ((hr = read_to_startelement( reader, &found )) != S_OK) return hr;
if (!found) return WS_E_INVALID_FORMAT;
}
if ((hr = read_next_node( reader )) != S_OK) return hr;