Bruno Jesus : regedit: Allows semicolon comments.

Alexandre Julliard julliard at winehq.org
Fri Apr 27 10:55:45 CDT 2012


Module: wine
Branch: master
Commit: 1fba4a6886821ec783fc24bf3a6d77dc6d5698f7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1fba4a6886821ec783fc24bf3a6d77dc6d5698f7

Author: Bruno Jesus <00cpxxx at gmail.com>
Date:   Fri Apr 27 01:40:47 2012 -0300

regedit: Allows semicolon comments.

---

 programs/regedit/regproc.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index f82d793..7065bfd 100644
--- a/programs/regedit/regproc.c
+++ b/programs/regedit/regproc.c
@@ -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




More information about the wine-cvs mailing list