Author: janderwald
Date: Thu Dec 11 03:05:19 2008
New Revision: 38006
URL:
http://svn.reactos.org/svn/reactos?rev=38006&view=rev
Log:
- Fix RegSetValueEx parameters
- Found by Chris
Modified:
trunk/reactos/dll/win32/syssetup/wizard.c
Modified: trunk/reactos/dll/win32/syssetup/wizard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.…
==============================================================================
--- trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] Thu Dec 11 03:05:19 2008
@@ -2179,7 +2179,7 @@
0,
REG_SZ,
(const BYTE*)szPath,
- _tcslen(szPath) * sizeof(TCHAR)) == ERROR_SUCCESS)
+ (_tcslen(szPath)+1) * sizeof(TCHAR)) == ERROR_SUCCESS)
{
i++;
}
@@ -2217,7 +2217,7 @@
0,
REG_SZ,
(const BYTE*)szPath,
- strlen(szPath) * sizeof(char));
+ (strlen(szPath)+1) * sizeof(char));
/* winetests */