regedit: Include the terminating null in string lengths.

This commit is contained in:
Alexandre Julliard 2008-03-03 12:07:16 +01:00
parent dcb8dd3ce3
commit b9e578528f
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ static LONG setValue(LPSTR val_name, LPSTR val_data)
val_data[dwLen]='\0';
}
lpbData = (BYTE*) val_data;
dwLen++; /* include terminating null */
}
else if (dwParseType == REG_DWORD) /* Convert the dword types */
{