hhctrl.ocx: Parse HTML entities in the table of contents.

Alexandre Julliard julliard at winehq.org
Wed May 30 07:41:55 CDT 2007


Robert Shearman <rob at codeweavers.com> writes:

> +            p++;
> +            if ((*p == 'X') || (*p == 'x'))
> +            {
> +                /* hexadecimal entity */
> +                while ((*p >= '0' && *p <= '9') || (*p >= 'a' && *p <= 'f') ||
> +                       (*p >= 'A' && *p <= 'F'))
> +                    p++;
> +                ch = strtolW(start + 2, NULL, 16);
> +            }

This is still broken.

> +            if (p - start - 1 <= sizeof(char_refs[0].name))
> +            {
> +                for (i = 0; i < sizeof(char_refs)/sizeof(char_refs[0]); i++)
> +                    if (!strncmpW(char_refs[i].name, start + 1, p - start - 1))
> +                        break;
> +            }

This is still broken too.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list