Commit 4b7085fd authored by Alexandre Julliard's avatar Alexandre Julliard

setupapi: Fix total size when appending multi-string values.

parent 97e2c24c
...@@ -242,7 +242,7 @@ static void append_multi_sz_value( HKEY hkey, const WCHAR *value, const WCHAR *s ...@@ -242,7 +242,7 @@ static void append_multi_sz_value( HKEY hkey, const WCHAR *value, const WCHAR *s
{ {
memcpy( p, strings, len * sizeof(WCHAR) ); memcpy( p, strings, len * sizeof(WCHAR) );
p[len] = 0; p[len] = 0;
total += len; total += len * sizeof(WCHAR);
} }
strings += len; strings += len;
} }
......
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