[FORMATTING]

No code changes.

svn path=/trunk/; revision=47107
This commit is contained in:
Eric Kohl 2010-05-05 22:53:01 +00:00
parent 51e6829b67
commit ac293dd5d6

View file

@ -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))
{ {