Jason Edmeades : regedit: Fix importing of .reg hex.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 13 06:31:51 CDT 2007


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

Author: Jason Edmeades <jason.edmeades at googlemail.com>
Date:   Fri Aug 10 22:28:36 2007 +0100

regedit: Fix importing of .reg hex.

---

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

diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index 6cc63f2..602717a 100644
--- a/programs/regedit/regproc.c
+++ b/programs/regedit/regproc.c
@@ -109,7 +109,9 @@ static BYTE* convertHexCSVToHex(char *str, DWORD *size)
         *d++ =(BYTE)wc;
         (*size)++;
 
-        s+=(wc < 0x10 ? 2 : 3);
+        /* Skip one or two digits and any comma */
+        while (*s && *s!=',') s++;
+        if (*s) s++;
     }
 
     return data;




More information about the wine-cvs mailing list