[PATCH 2/2] regedit: Handle comment lines with leading spaces and tabs
Hugh McMaster
hugh.mcmaster at outlook.com
Thu Mar 30 07:11:53 CDT 2017
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;
@@ -860,6 +861,7 @@ static WCHAR *get_lineW(FILE *fp)
next = line;
continue;
}
+ while (*line == ' ' || *line == '\t') line++;
if (*line == ';' || *line == '#')
{
line = next;
--
2.7.4
More information about the wine-patches
mailing list