regedit: Avoid appending '\0' to string value of imported key.

This commit is contained in:
Jiaxing Wang 2014-11-20 15:29:07 +08:00 committed by Alexandre Julliard
parent 2100d3e1ec
commit a53371497f
1 changed files with 0 additions and 1 deletions

View File

@ -376,7 +376,6 @@ static LONG setValue(WCHAR* val_name, WCHAR* val_data, BOOL is_unicode)
return ERROR_INVALID_DATA; return ERROR_INVALID_DATA;
val_data[dwLen-1] = '\0'; /* remove last quotes */ val_data[dwLen-1] = '\0'; /* remove last quotes */
lpbData = (BYTE*) val_data; lpbData = (BYTE*) val_data;
dwLen++; /* include terminating null */
dwLen = dwLen * sizeof(WCHAR); /* size is in bytes */ dwLen = dwLen * sizeof(WCHAR); /* size is in bytes */
} }
else if (dwParseType == REG_DWORD) /* Convert the dword types */ else if (dwParseType == REG_DWORD) /* Convert the dword types */