- Fix RegSetValueEx parameters
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 11 Dec 2008 09:05:19 +0000 (09:05 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 11 Dec 2008 09:05:19 +0000 (09:05 +0000)
- Found by Chris

svn path=/trunk/; revision=38006

reactos/dll/win32/syssetup/wizard.c

index db9ac75..05ffab6 100644 (file)
@@ -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 */