Commit 74c5e38b authored by Erich E. Hoover's avatar Erich E. Hoover Committed by Alexandre Julliard

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

parent 2d80b3ed
......@@ -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)
......
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