Commit b9e57852 authored by Alexandre Julliard's avatar Alexandre Julliard

regedit: Include the terminating null in string lengths.

parent dcb8dd3c
...@@ -274,6 +274,7 @@ static LONG setValue(LPSTR val_name, LPSTR val_data) ...@@ -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 */
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment