setupapi: Fix total size when appending multi-string values.
This commit is contained in:
parent
97e2c24cc7
commit
4b7085fdd4
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue