[PATCH 2/2] xmllite: Increase depth in MoveToAttributeByName().
Nikolay Sivov
nsivov at codeweavers.com
Thu Jun 2 01:20:09 CDT 2022
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().
More information about the wine-devel
mailing list