putenv should return success on deletion of nonexistent variable.
authorSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Sun, 18 Dec 2005 01:29:18 +0000 (01:29 +0000)
committerSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Sun, 18 Dec 2005 01:29:18 +0000 (01:29 +0000)
fixes one "msvcrt environ" test

svn path=/trunk/; revision=20239

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);
-         return -1;
+         return 0;
       }
 
       /* Remove the option from wide character environment. */