mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:02:59 +00:00
[USETUP]
Use sizeof(WCHAR) instead of sizeof(PWCHAR) when calculating REG_SZ size for NtSetValueKey svn path=/trunk/; revision=53431
This commit is contained in:
parent
4a306627d7
commit
ef74f83550
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue