make style
This commit is contained in:
parent
acdde1088c
commit
519dd8f8e2
@ -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…
x
Reference in New Issue
Block a user