[PATCH 1/2] regedit: Overhaul Unicode line processing

Alexandre Julliard julliard at winehq.org
Mon Nov 21 13:38:48 CST 2016


Hugh McMaster <hugh.mcmaster at outlook.com> writes:

> +        p = strpbrkW(line, line_endings);
> +        if (!p)
> +        {
> +            HeapFree(GetProcessHeap(), 0, buf);
> +            return NULL;

If there are no line endings you need to read more data instead of
failing. Also it looks to me that you are reading the entire file into
the buffer instead of just one line.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list