mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +00:00
[FORMATTING]
No code changes. svn path=/trunk/; revision=47107
This commit is contained in:
parent
51e6829b67
commit
ac293dd5d6
1 changed files with 318 additions and 316 deletions
|
@ -56,7 +56,6 @@ SetUserEnvironmentVariable (LPVOID *Environment,
|
||||||
DstValue.MaximumLength = Length;
|
DstValue.MaximumLength = Length;
|
||||||
DstValue.Buffer = Buffer = LocalAlloc(LPTR,
|
DstValue.Buffer = Buffer = LocalAlloc(LPTR,
|
||||||
Length);
|
Length);
|
||||||
|
|
||||||
if (DstValue.Buffer == NULL)
|
if (DstValue.Buffer == NULL)
|
||||||
{
|
{
|
||||||
DPRINT1("LocalAlloc() failed\n");
|
DPRINT1("LocalAlloc() failed\n");
|
||||||
|
@ -71,7 +70,8 @@ SetUserEnvironmentVariable (LPVOID *Environment,
|
||||||
{
|
{
|
||||||
DPRINT1("RtlExpandEnvironmentStrings_U() failed (Status %lx)\n", Status);
|
DPRINT1("RtlExpandEnvironmentStrings_U() failed (Status %lx)\n", Status);
|
||||||
DPRINT1("Length %lu\n", Length);
|
DPRINT1("Length %lu\n", Length);
|
||||||
if (Buffer) LocalFree(Buffer);
|
if (Buffer)
|
||||||
|
LocalFree(Buffer);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,8 @@ SetUserEnvironmentVariable (LPVOID *Environment,
|
||||||
if (!GetShortPathNameW(DstValue.Buffer, ShortName, MAX_PATH))
|
if (!GetShortPathNameW(DstValue.Buffer, ShortName, MAX_PATH))
|
||||||
{
|
{
|
||||||
DPRINT1("GetShortPathNameW() failed for %S (Error %lu)\n", DstValue.Buffer, GetLastError());
|
DPRINT1("GetShortPathNameW() failed for %S (Error %lu)\n", DstValue.Buffer, GetLastError());
|
||||||
if (Buffer) LocalFree(Buffer);
|
if (Buffer)
|
||||||
|
LocalFree(Buffer);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,7 +105,8 @@ SetUserEnvironmentVariable (LPVOID *Environment,
|
||||||
&Name,
|
&Name,
|
||||||
&DstValue);
|
&DstValue);
|
||||||
|
|
||||||
if (Buffer) LocalFree(Buffer);
|
if (Buffer)
|
||||||
|
LocalFree(Buffer);
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue