mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 08:13:38 +00:00
regedit: Avoid appending '\0' to string value of imported key.
This commit is contained in:
parent
2100d3e1ec
commit
a53371497f
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue