[PATCH 2/2] regedit: Handle comment lines with leading spaces and tabs

Alexandre Julliard julliard at winehq.org
Thu Mar 30 12:43:57 CDT 2017


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

> Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
> ---
>  programs/regedit/regproc.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
> index 131149f..bce551b 100644
> --- a/programs/regedit/regproc.c
> +++ b/programs/regedit/regproc.c
> @@ -749,6 +749,7 @@ static char *get_lineA(FILE *fp)
>              next = line;
>              continue;
>          }
> +        while (*line == ' ' || *line == '\t') line++;
>          if (*line == ';' || *line == '#')
>          {
>              line = next;

This is going to affect non-comment lines too, is that what you want?
If so, the commit message is a bit misleading.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list