diff --git a/dlls/webservices/reader.c b/dlls/webservices/reader.c index 9164b4fd85b..1b3dd2f0839 100644 --- a/dlls/webservices/reader.c +++ b/dlls/webservices/reader.c @@ -962,6 +962,7 @@ static HRESULT read_element( struct reader *reader ) hr = E_OUTOFMEMORY; if (!(elem->ns = alloc_xml_string( NULL, 0 ))) goto error; + reader->current_attr = 0; for (;;) { read_skip_whitespace( reader ); @@ -972,6 +973,7 @@ static HRESULT read_element( struct reader *reader ) free_attribute( attr ); goto error; } + reader->current_attr++; } read_skip_whitespace( reader );