mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 12:08:55 +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.Buffer = Buffer = LocalAlloc(LPTR,
|
||||
Length);
|
||||
|
||||
if (DstValue.Buffer == NULL)
|
||||
{
|
||||
DPRINT1("LocalAlloc() failed\n");
|
||||
|
@ -71,7 +70,8 @@ SetUserEnvironmentVariable (LPVOID *Environment,
|
|||
{
|
||||
DPRINT1("RtlExpandEnvironmentStrings_U() failed (Status %lx)\n", Status);
|
||||
DPRINT1("Length %lu\n", Length);
|
||||
if (Buffer) LocalFree(Buffer);
|
||||
if (Buffer)
|
||||
LocalFree(Buffer);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
@ -86,7 +86,8 @@ SetUserEnvironmentVariable (LPVOID *Environment,
|
|||
if (!GetShortPathNameW(DstValue.Buffer, ShortName, MAX_PATH))
|
||||
{
|
||||
DPRINT1("GetShortPathNameW() failed for %S (Error %lu)\n", DstValue.Buffer, GetLastError());
|
||||
if (Buffer) LocalFree(Buffer);
|
||||
if (Buffer)
|
||||
LocalFree(Buffer);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -104,7 +105,8 @@ SetUserEnvironmentVariable (LPVOID *Environment,
|
|||
&Name,
|
||||
&DstValue);
|
||||
|
||||
if (Buffer) LocalFree(Buffer);
|
||||
if (Buffer)
|
||||
LocalFree(Buffer);
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue