diff --git a/dlls/setupapi/install.c b/dlls/setupapi/install.c index e216e8c4ef3..dda1396e8a8 100644 --- a/dlls/setupapi/install.c +++ b/dlls/setupapi/install.c @@ -242,7 +242,7 @@ static void append_multi_sz_value( HKEY hkey, const WCHAR *value, const WCHAR *s { memcpy( p, strings, len * sizeof(WCHAR) ); p[len] = 0; - total += len; + total += len * sizeof(WCHAR); } strings += len; }