From dbd198da9def3a104b3c0e1d5bba01e33ba4eacf Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Thu, 11 Dec 2008 09:05:19 +0000 Subject: [PATCH] - Fix RegSetValueEx parameters - Found by Chris svn path=/trunk/; revision=38006 --- reactos/dll/win32/syssetup/wizard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/syssetup/wizard.c b/reactos/dll/win32/syssetup/wizard.c index db9ac75efce..05ffab614cb 100644 --- a/reactos/dll/win32/syssetup/wizard.c +++ b/reactos/dll/win32/syssetup/wizard.c @@ -2179,7 +2179,7 @@ ProcessUnattendInf(HINF hUnattendedInf) 0, REG_SZ, (const BYTE*)szPath, - _tcslen(szPath) * sizeof(TCHAR)) == ERROR_SUCCESS) + (_tcslen(szPath)+1) * sizeof(TCHAR)) == ERROR_SUCCESS) { i++; } @@ -2217,7 +2217,7 @@ ProcessUnattendInf(HINF hUnattendedInf) 0, REG_SZ, (const BYTE*)szPath, - strlen(szPath) * sizeof(char)); + (strlen(szPath)+1) * sizeof(char)); /* winetests */