putenv should return success on deletion of nonexistent variable.
[reactos.git] / reactos / lib / crt / misc / environ.c
index 07b36fb..02f8345 100644 (file)
@@ -259,7 +259,7 @@ int SetEnv(const wchar_t *option)
       if (!found)
       {
          free(name);
       if (!found)
       {
          free(name);
-         return -1;
+         return 0;
       }
 
       /* Remove the option from wide character environment. */
       }
 
       /* Remove the option from wide character environment. */