Module: wine Branch: master Commit: a53371497f62ee4ff5a379941cc2cd58ac5cbb4d URL: http://source.winehq.org/git/wine.git/?a=commit;h=a53371497f62ee4ff5a379941c...
Author: Jiaxing Wang hello.wjx@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 */