mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
msxml: Fixed list walking in xmlnodelist_get_length.
This commit is contained in:
parent
bc7df7ad80
commit
858bebc7c8
@ -334,17 +334,20 @@ static HRESULT WINAPI xmlnodelist_get_length(
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
curr = This->node;
|
||||
|
||||
if(This->enum_children)
|
||||
{
|
||||
tmp = curr;
|
||||
top_level_node = &tmp;
|
||||
}
|
||||
|
||||
for(curr = This->node; curr; curr = get_next_node(&This->xinfo, curr, top_level_node))
|
||||
while (curr)
|
||||
{
|
||||
r = xslt_next_match( &This->xinfo, &curr, top_level_node );
|
||||
if(FAILED(r) || !curr) break;
|
||||
nodeCount++;
|
||||
curr = get_next_node(&This->xinfo, curr, top_level_node);
|
||||
}
|
||||
|
||||
*listLength = nodeCount;
|
||||
|
Loading…
Reference in New Issue
Block a user