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?re…
==============================================================================
--- 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);