mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:13:56 +00:00
regedit: Allows semicolon comments.
This commit is contained in:
parent
c3821f6c63
commit
1fba4a6886
1 changed files with 3 additions and 3 deletions
|
@ -610,7 +610,7 @@ static void processRegEntry(WCHAR* stdInput, BOOL isUnicode)
|
|||
|
||||
/******************************************************************************
|
||||
* Processes a registry file.
|
||||
* Correctly processes comments (in # form), line continuation.
|
||||
* Correctly processes comments (in # and ; form), line continuation.
|
||||
*
|
||||
* Parameters:
|
||||
* in - input stream to read from
|
||||
|
@ -710,7 +710,7 @@ static void processRegLinesA(FILE *in, char* first_chars)
|
|||
}
|
||||
|
||||
/* If it is a comment line then discard it and go around again */
|
||||
if (line [0] == '#') {
|
||||
if (line [0] == '#' || line [0] == ';') {
|
||||
s = line;
|
||||
continue;
|
||||
}
|
||||
|
@ -837,7 +837,7 @@ static void processRegLinesW(FILE *in)
|
|||
}
|
||||
|
||||
/* If it is a comment line then discard it and go around again */
|
||||
if (*line == '#') {
|
||||
if (*line == '#' || *line == ';') {
|
||||
if (*s_eol == '\r' && *(s_eol+1) == '\n')
|
||||
line = s_eol + 2;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue