Author: janderwald
Date: Fri Oct 31 18:21:15 2008
New Revision: 37118
URL:
http://svn.reactos.org/svn/reactos?rev=37118&view=rev
Log:
- Include zero byte in byte count to NtSetValueKey
Modified:
trunk/reactos/base/setup/usetup/mui.c
Modified: trunk/reactos/base/setup/usetup/mui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/mui.c?re…
==============================================================================
--- trunk/reactos/base/setup/usetup/mui.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/mui.c [iso-8859-1] Fri Oct 31 18:21:15 2008
@@ -403,7 +403,7 @@
0,
REG_SZ,
(PVOID)MuiLayouts[uIndex].LayoutID,
- wcslen(MuiLayouts[uIndex].LayoutID) * sizeof(WCHAR));
+ (wcslen(MuiLayouts[uIndex].LayoutID)+1) *
sizeof(WCHAR));
if (!NT_SUCCESS(Status))
{
DPRINT1("NtSetValueKey() failed (Status = %lx, uIndex = %d)\n",
Status, uIndex);
@@ -420,7 +420,7 @@
0,
REG_SZ,
(PVOID)szLangID,
- wcslen(szLangID) * sizeof(WCHAR));
+ (wcslen(szLangID)+1) * sizeof(WCHAR));
if (!NT_SUCCESS(Status))
{
DPRINT1("NtSetValueKey() failed (Status = %lx, uIndex = %d)\n",
Status, uIndex);
@@ -436,7 +436,7 @@
0,
REG_SZ,
(PVOID)MuiLayouts[uIndex].LayoutID,
- wcslen(MuiLayouts[uIndex].LayoutID) * sizeof(WCHAR));
+ (wcslen(MuiLayouts[uIndex].LayoutID)+1) *
sizeof(WCHAR));
if (!NT_SUCCESS(Status))
{
DPRINT1("NtSetValueKey() failed (Status = %lx, uIndex = %d)\n",
Status, uIndex);
@@ -513,7 +513,7 @@
0,
REG_SZ,
(PVOID)ACPage,
- wcslen(ACPage) * sizeof(PWCHAR));
+ (wcslen(ACPage)+1) * sizeof(PWCHAR));
if (!NT_SUCCESS(Status))
{
DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);
@@ -528,7 +528,7 @@
0,
REG_SZ,
(PVOID)OEMCPage,
- wcslen(OEMCPage) * sizeof(PWCHAR));
+ (wcslen(OEMCPage)+1) * sizeof(PWCHAR));
if (!NT_SUCCESS(Status))
{
DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);
@@ -543,7 +543,7 @@
0,
REG_SZ,
(PVOID)MACCPage,
- wcslen(MACCPage) * sizeof(PWCHAR));
+ (wcslen(MACCPage)+1) * sizeof(PWCHAR));
if (!NT_SUCCESS(Status))
{
DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);