- Include zero byte in byte count to NtSetValueKey

svn path=/trunk/; revision=37118
This commit is contained in:
Johannes Anderwald
2008-10-31 23:21:15 +00:00
parent e4bbc4a8bf
commit ff88c3b914
+6 -6
View File
@@ -403,7 +403,7 @@ AddKbLayoutsToRegistry(IN const MUI_LAYOUTS * MuiLayouts)
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 @@ AddKbLayoutsToRegistry(IN const MUI_LAYOUTS * MuiLayouts)
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 @@ AddKbLayoutsToRegistry(IN const MUI_LAYOUTS * MuiLayouts)
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 @@ AddCodepageToRegistry(IN LPCWSTR ACPage, IN LPCWSTR OEMCPage, IN LPCWSTR MACCPag
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 @@ AddCodepageToRegistry(IN LPCWSTR ACPage, IN LPCWSTR OEMCPage, IN LPCWSTR MACCPag
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 @@ AddCodepageToRegistry(IN LPCWSTR ACPage, IN LPCWSTR OEMCPage, IN LPCWSTR MACCPag
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);