From 6d676e6e95ce682d765a1d27fce4a217d46e58ba Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Sun, 4 Jun 2006 23:30:29 +0000 Subject: [PATCH] Fix one wine test. Don't accept an option string that starts with =. svn path=/trunk/; revision=22226 --- reactos/lib/crt/misc/environ.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactos/lib/crt/misc/environ.c b/reactos/lib/crt/misc/environ.c index 02f83455769..50254a9f307 100644 --- a/reactos/lib/crt/misc/environ.c +++ b/reactos/lib/crt/misc/environ.c @@ -220,8 +220,11 @@ int SetEnv(const wchar_t *option) char *mboption; int remove, index, count, size, result = 0, found = 0; - if (option == NULL || (epos = wcschr(option, L'=')) == NULL) - return -1; + if (option == NULL || + ((epos = wcschr(option, L'=')) == NULL) || + (epos == option)) + return -1; + remove = (epos[1] == 0); /* Duplicate environment if needed. */