Author: arty
Date: Mon Jun 5 03:30:29 2006
New Revision: 22226
URL:
http://svn.reactos.ru/svn/reactos?rev=22226&view=rev
Log:
Fix one wine test. Don't accept an option string that starts with =.
Modified:
trunk/reactos/lib/crt/misc/environ.c
Modified: trunk/reactos/lib/crt/misc/environ.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/lib/crt/misc/environ.c?rev=…
==============================================================================
--- trunk/reactos/lib/crt/misc/environ.c (original)
+++ trunk/reactos/lib/crt/misc/environ.c Mon Jun 5 03:30:29 2006
@@ -220,8 +220,11 @@
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. */