[USETUP]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 25 Aug 2011 07:03:12 +0000 (07:03 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 25 Aug 2011 07:03:12 +0000 (07:03 +0000)
Use sizeof(WCHAR) instead of sizeof(PWCHAR) when calculating REG_SZ size for NtSetValueKey

svn path=/trunk/; revision=53431

reactos/base/setup/usetup/mui.c

index 1972b93..1bf150d 100644 (file)
@@ -38,7 +38,7 @@ PopupError(IN PCCH Text,
            IN PINPUT_RECORD Ir,
            IN ULONG WaitEvent);
 
-static 
+static
 ULONG
 FindLanguageIndex()
 {
@@ -143,8 +143,8 @@ MUIDisplayPage(IN ULONG page)
     do
     {
         CONSOLE_SetStyledText (
-                   entry[index].X, 
-                   entry[index].Y, 
+                   entry[index].X,
+                   entry[index].Y,
                    entry[index].Flags,
                    entry[index].Buffer);
 
@@ -517,7 +517,7 @@ AddCodepageToRegistry(IN LPCWSTR ACPage, IN LPCWSTR OEMCPage, IN LPCWSTR MACCPag
                            0,
                            REG_SZ,
                            (PVOID)ACPage,
-                           (wcslen(ACPage)+1) * sizeof(PWCHAR));
+                           (wcslen(ACPage)+1) * sizeof(WCHAR));
     if (!NT_SUCCESS(Status))
     {
         DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);
@@ -532,7 +532,7 @@ AddCodepageToRegistry(IN LPCWSTR ACPage, IN LPCWSTR OEMCPage, IN LPCWSTR MACCPag
                            0,
                            REG_SZ,
                            (PVOID)OEMCPage,
-                           (wcslen(OEMCPage)+1) * sizeof(PWCHAR));
+                           (wcslen(OEMCPage)+1) * sizeof(WCHAR));
     if (!NT_SUCCESS(Status))
     {
         DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);
@@ -547,7 +547,7 @@ AddCodepageToRegistry(IN LPCWSTR ACPage, IN LPCWSTR OEMCPage, IN LPCWSTR MACCPag
                            0,
                            REG_SZ,
                            (PVOID)MACCPage,
-                           (wcslen(MACCPage)+1) * sizeof(PWCHAR));
+                           (wcslen(MACCPage)+1) * sizeof(WCHAR));
     if (!NT_SUCCESS(Status))
     {
         DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);