Jiaxing Wang : regedit: Avoid appending '\0' to string value of imported key.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed May 20 10:04:12 CDT 2015
Module: wine
Branch: master
Commit: a53371497f62ee4ff5a379941cc2cd58ac5cbb4d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a53371497f62ee4ff5a379941cc2cd58ac5cbb4d
Author: Jiaxing Wang <hello.wjx at gmail.com>
Date: Thu Nov 20 15:29:07 2014 +0800
regedit: Avoid appending '\0' to string value of imported key.
---
programs/regedit/regproc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index 80beb21..643b559 100644
--- a/programs/regedit/regproc.c
+++ b/programs/regedit/regproc.c
@@ -376,7 +376,6 @@ static LONG setValue(WCHAR* val_name, WCHAR* val_data, BOOL is_unicode)
return ERROR_INVALID_DATA;
val_data[dwLen-1] = '\0'; /* remove last quotes */
lpbData = (BYTE*) val_data;
- dwLen++; /* include terminating null */
dwLen = dwLen * sizeof(WCHAR); /* size is in bytes */
}
else if (dwParseType == REG_DWORD) /* Convert the dword types */
More information about the wine-cvs
mailing list