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:
parent
f2b399784d
commit
087631bbbc
|
@ -2999,8 +2999,10 @@ static HRESULT read_move_to( struct reader *reader, WS_MOVE_TO move, BOOL *found
|
||||||
|
|
||||||
if (!read_end_of_data( reader ))
|
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 */ };
|
while (reader->state != READER_STATE_EOF && (hr = read_node( reader )) == S_OK) { /* nothing */ };
|
||||||
if (hr != S_OK) return hr;
|
if (hr != S_OK) return hr;
|
||||||
|
reader->current = saved_current;
|
||||||
}
|
}
|
||||||
switch (move)
|
switch (move)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue