From: Sebastian Gasiorek Date: Sun, 18 Dec 2005 01:29:18 +0000 (+0000) Subject: putenv should return success on deletion of nonexistent variable. X-Git-Tag: backups/expat-rbuild@40467~879 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=565f110df2a0e764f531d8974bd83c030f49d691 putenv should return success on deletion of nonexistent variable. fixes one "msvcrt environ" test svn path=/trunk/; revision=20239 --- 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. */