make style
This commit is contained in:
parent
acdde1088c
commit
519dd8f8e2
4 changed files with 7 additions and 9 deletions
|
@ -29,10 +29,8 @@
|
|||
int setenv(const char *name, const char *value, int overwrite)
|
||||
{
|
||||
int exists = GetEnvironmentVariableA(name, NULL, 0);
|
||||
if ((exists && overwrite) || (!exists))
|
||||
{
|
||||
if (!SetEnvironmentVariableA(name, value))
|
||||
{
|
||||
if ((exists && overwrite) || (!exists)) {
|
||||
if (!SetEnvironmentVariableA(name, value)) {
|
||||
// Set errno here correctly
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue