From 565f110df2a0e764f531d8974bd83c030f49d691 Mon Sep 17 00:00:00 2001 From: Sebastian Gasiorek Date: Sun, 18 Dec 2005 01:29:18 +0000 Subject: [PATCH] putenv should return success on deletion of nonexistent variable. fixes one "msvcrt environ" test svn path=/trunk/; revision=20239 --- reactos/lib/crt/misc/environ.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/crt/misc/environ.c b/reactos/lib/crt/misc/environ.c index 07b36fb035b..02f83455769 100644 --- a/reactos/lib/crt/misc/environ.c +++ b/reactos/lib/crt/misc/environ.c @@ -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. */