Do not print an error message when deleting a nonexistent variable.

This commit is contained in:
Detlef Riekenberg 2005-07-11 10:23:37 +00:00 committed by Alexandre Julliard
parent 901e7c6650
commit a51dcfcfc6
1 changed files with 2 additions and 2 deletions

View File

@ -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*/
}