From: Vincent Povirk Subject: [2/2] hhctrl.ocx: Don't skip a tag in next_node. Message-Id: <1484672018-6831-2-git-send-email-madewokherd@gmail.com> Date: Tue, 17 Jan 2017 10:53:38 -0600 From: Vincent Povirk 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: Vincent Povirk --- dlls/hhctrl.ocx/stream.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/dlls/hhctrl.ocx/stream.c b/dlls/hhctrl.ocx/stream.c index 84ed317..b4239ca 100644 --- a/dlls/hhctrl.ocx/stream.c +++ b/dlls/hhctrl.ocx/stream.c @@ -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; -- 2.7.4