Alexandre Julliard : regedit: Include the terminating null in string lengths.

Alexandre Julliard julliard at winehq.org
Mon Mar 3 06:21:37 CST 2008


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Mar  3 12:07:16 2008 +0100

regedit: Include the terminating null in string lengths.

---

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

diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index 8b1507d..9ee6765 100644
--- a/programs/regedit/regproc.c
+++ b/programs/regedit/regproc.c
@@ -274,6 +274,7 @@ static LONG setValue(LPSTR val_name, LPSTR val_data)
             val_data[dwLen]='\0';
         }
         lpbData = (BYTE*) val_data;
+        dwLen++;  /* include terminating null */
     }
     else if (dwParseType == REG_DWORD)  /* Convert the dword types */
     {




More information about the wine-cvs mailing list