hhctrl.ocx: Fix an off by one mistake in searching for the node endpoint.

This commit is contained in:
Erich E. Hoover 2014-05-05 23:12:10 -06:00 committed by Alexandre Julliard
parent 2d80b3ed54
commit 74c5e38b7c

View File

@ -122,7 +122,7 @@ static BOOL find_node_end(stream_t *stream, strbuf_t *buf)
if(buf->len == 0)
break;
p = &buf->buf[b];
while((p = memchr(p+1, '"', buf->len-(p-buf->buf))) != NULL)
while((p = memchr(p+1, '"', buf->len-(p+1-buf->buf))) != NULL)
tag_count++;
b = buf->len;
if(tag_count % 2 != 0)