Alexander Nicolaysen Sørnes : regedit: Fix comment handling in Unicode file import.

Alexandre Julliard julliard at winehq.org
Fri Jul 11 08:44:16 CDT 2008


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

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Fri Jul 11 02:55:14 2008 +0200

regedit: Fix comment handling in Unicode file import.

---

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

diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index 4721bf3..98fd8b1 100644
--- a/programs/regedit/regproc.c
+++ b/programs/regedit/regproc.c
@@ -763,8 +763,8 @@ void processRegLinesW(FILE *in)
             s_eol = strchrW(s, '\n');
 
             /* If it is a comment line then discard it and go around again */
-            if (buf[0] == '#') {
-                s = buf;
+            if (*s == '#') {
+                s = s_eol + 1;
                 continue;
             }
 




More information about the wine-cvs mailing list