webservices: Restore the current pointer after reading ahead in read_move_to.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2017-06-14 11:07:29 +02:00 committed by Alexandre Julliard
parent f2b399784d
commit 087631bbbc
1 changed files with 2 additions and 0 deletions

View File

@ -2999,8 +2999,10 @@ static HRESULT read_move_to( struct reader *reader, WS_MOVE_TO move, BOOL *found
if (!read_end_of_data( reader ))
{
struct node *saved_current = reader->current;
while (reader->state != READER_STATE_EOF && (hr = read_node( reader )) == S_OK) { /* nothing */ };
if (hr != S_OK) return hr;
reader->current = saved_current;
}
switch (move)
{