Module: wine Branch: master Commit: 4b7085fdd499ca39a7e0ae47bd27323876103df0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4b7085fdd499ca39a7e0ae47bd...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Nov 26 12:31:59 2012 +0100
setupapi: Fix total size when appending multi-string values.
---
dlls/setupapi/install.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/setupapi/install.c b/dlls/setupapi/install.c index e216e8c..dda1396 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; }