Commit 89ca96d0 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

hhctrl.ocx: Don't skip a tag in next_node.

At the time this function is called, we're already past the '<' that begins the current tag. Calling find_end_node twice here means we were skipping every other tag. Signed-off-by: 's avatarVincent Povirk <vincent@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a16344ca
......@@ -139,17 +139,6 @@ static BOOL find_node_end(stream_t *stream, strbuf_t *buf)
BOOL next_node(stream_t *stream, strbuf_t *buf)
{
strbuf_t tmpbuf;
/* search through the end of the current node */
strbuf_init(&tmpbuf);
if(!find_node_end(stream, &tmpbuf))
{
strbuf_free(&tmpbuf);
return FALSE;
}
strbuf_free(&tmpbuf);
/* find the beginning of the next node */
if(!stream_chr(stream, NULL, '<'))
return FALSE;
......
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