Commit 01b07469 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

regedit: Append exported strings using the correct size.

parent 2b40148e
......@@ -1180,10 +1180,7 @@ static void export_hkey(FILE *file, HKEY key,
lstrcpyW(*line_buf + line_len, start);
line_len += len;
/* At this point we know wstr is '\0'-terminated
* so we can subtract 1 from the size
*/
REGPROC_export_string(line_buf, line_buf_size, &line_len, wstr, val_size1 / sizeof(WCHAR) - 1);
REGPROC_export_string(line_buf, line_buf_size, &line_len, wstr, lstrlenW(wstr));
REGPROC_resize_char_buffer(line_buf, line_buf_size, line_len + lstrlenW(end));
lstrcpyW(*line_buf + line_len, end);
......
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