Commit 6449cb3b authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

webservices: Reset the attribute index in read_element.

parent 46393a3f
...@@ -962,6 +962,7 @@ static HRESULT read_element( struct reader *reader ) ...@@ -962,6 +962,7 @@ static HRESULT read_element( struct reader *reader )
hr = E_OUTOFMEMORY; hr = E_OUTOFMEMORY;
if (!(elem->ns = alloc_xml_string( NULL, 0 ))) goto error; if (!(elem->ns = alloc_xml_string( NULL, 0 ))) goto error;
reader->current_attr = 0;
for (;;) for (;;)
{ {
read_skip_whitespace( reader ); read_skip_whitespace( reader );
...@@ -972,6 +973,7 @@ static HRESULT read_element( struct reader *reader ) ...@@ -972,6 +973,7 @@ static HRESULT read_element( struct reader *reader )
free_attribute( attr ); free_attribute( attr );
goto error; goto error;
} }
reader->current_attr++;
} }
read_skip_whitespace( reader ); read_skip_whitespace( reader );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment