Commit a51dcfcf authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

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

parent 901e7c66
......@@ -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*/
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment