Do not print an error message when deleting a nonexistent variable.
This commit is contained in:
parent
901e7c6650
commit
a51dcfcfc6
|
@ -833,9 +833,9 @@ char buffer[1048];
|
|||
}
|
||||
*p++ = '\0';
|
||||
|
||||
if (strlen(p) == 0) p = 0x00;
|
||||
if (strlen(p) == 0) p = NULL;
|
||||
status = SetEnvironmentVariable (s, p);
|
||||
if (!status) WCMD_print_error();
|
||||
if ((!status) & (GetLastError() != ERROR_ENVVAR_NOT_FOUND)) WCMD_print_error();
|
||||
}
|
||||
/* WCMD_output (newline); @JED*/
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue