mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[SMSS] Fix some x64 warnings C4267 "conversion from 'size_t' to 'ULONG', possible loss of data"
This commit is contained in:
parent
f0dd1e7b57
commit
c48ca5b022
1 changed files with 6 additions and 6 deletions
|
@ -1745,7 +1745,7 @@ SmpCreateDynamicEnvironmentVariables(VOID)
|
|||
0,
|
||||
REG_SZ,
|
||||
ValueData,
|
||||
(wcslen(ValueData) + 1) * sizeof(WCHAR));
|
||||
(ULONG)(wcslen(ValueData) + 1) * sizeof(WCHAR));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("SMSS: Failed writing %wZ environment variable - %x\n",
|
||||
|
@ -1783,7 +1783,7 @@ SmpCreateDynamicEnvironmentVariables(VOID)
|
|||
0,
|
||||
REG_SZ,
|
||||
ValueData,
|
||||
(wcslen(ValueData) + 1) * sizeof(WCHAR));
|
||||
(ULONG)(wcslen(ValueData) + 1) * sizeof(WCHAR));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("SMSS: Failed writing %wZ environment variable - %x\n",
|
||||
|
@ -1801,7 +1801,7 @@ SmpCreateDynamicEnvironmentVariables(VOID)
|
|||
0,
|
||||
REG_SZ,
|
||||
ValueBuffer,
|
||||
(wcslen(ValueBuffer) + 1) * sizeof(WCHAR));
|
||||
(ULONG)(wcslen(ValueBuffer) + 1) * sizeof(WCHAR));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("SMSS: Failed writing %wZ environment variable - %x\n",
|
||||
|
@ -1927,7 +1927,7 @@ SmpCreateDynamicEnvironmentVariables(VOID)
|
|||
0,
|
||||
REG_SZ,
|
||||
ValueBuffer,
|
||||
(wcslen(ValueBuffer) + 1) * sizeof(WCHAR));
|
||||
(ULONG)(wcslen(ValueBuffer) + 1) * sizeof(WCHAR));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("SMSS: Failed writing %wZ environment variable - %x\n",
|
||||
|
@ -1945,7 +1945,7 @@ SmpCreateDynamicEnvironmentVariables(VOID)
|
|||
0,
|
||||
REG_SZ,
|
||||
ValueBuffer,
|
||||
(wcslen(ValueBuffer) + 1) * sizeof(WCHAR));
|
||||
(ULONG)(wcslen(ValueBuffer) + 1) * sizeof(WCHAR));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("SMSS: Failed writing %wZ environment variable - %x\n",
|
||||
|
@ -2001,7 +2001,7 @@ SmpCreateDynamicEnvironmentVariables(VOID)
|
|||
0,
|
||||
REG_SZ,
|
||||
ValueBuffer,
|
||||
(wcslen(ValueBuffer) + 1) * sizeof(WCHAR));
|
||||
(ULONG)(wcslen(ValueBuffer) + 1) * sizeof(WCHAR));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("SMSS: Failed writing %wZ environment variable - %x\n",
|
||||
|
|
Loading…
Reference in a new issue