regedit: Include the terminating null in string lengths.
This commit is contained in:
parent
dcb8dd3ce3
commit
b9e578528f
|
@ -274,6 +274,7 @@ static LONG setValue(LPSTR val_name, LPSTR val_data)
|
||||||
val_data[dwLen]='\0';
|
val_data[dwLen]='\0';
|
||||||
}
|
}
|
||||||
lpbData = (BYTE*) val_data;
|
lpbData = (BYTE*) val_data;
|
||||||
|
dwLen++; /* include terminating null */
|
||||||
}
|
}
|
||||||
else if (dwParseType == REG_DWORD) /* Convert the dword types */
|
else if (dwParseType == REG_DWORD) /* Convert the dword types */
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue