[ros-diffs] [tkreuzer] 53431: [USETUP] Use sizeof(WCHAR) instead of sizeof(PWCHAR) when calculating REG_SZ size for NtSetValueKey

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Thu Aug 25 07:03:14 UTC 2011


Author: tkreuzer
Date: Thu Aug 25 07:03:12 2011
New Revision: 53431

URL: http://svn.reactos.org/svn/reactos?rev=53431&view=rev
Log:
[USETUP]
Use sizeof(WCHAR) instead of sizeof(PWCHAR) when calculating REG_SZ size for 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?rev=53431&r1=53430&r2=53431&view=diff
==============================================================================
--- trunk/reactos/base/setup/usetup/mui.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/mui.c [iso-8859-1] Thu Aug 25 07:03:12 2011
@@ -38,7 +38,7 @@
            IN PINPUT_RECORD Ir,
            IN ULONG WaitEvent);
 
-static 
+static
 ULONG
 FindLanguageIndex()
 {
@@ -143,8 +143,8 @@
     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 @@
                            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 @@
                            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 @@
                            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);




More information about the Ros-diffs mailing list