On 6/2/22 09:15, Ziqing Hui wrote:
@@ -3071,6 +3071,8 @@ static HRESULT WINAPI xmlreader_MoveToAttributeByName(IXmlReader* iface, if (name_len == target_name_len && uri_len == target_uri_len && !wcscmp(name, local_name) && !wcscmp(uri, namespace_uri)) {
if (!This->attr)
reader_inc_depth(This); reader_set_current_attribute(This, attr); return S_OK; }
I think this call could be moved in reader_set_current_attribute(), and removed from reader_move_to_first_attribute().