[ros-diffs] [arty] 22226: Fix one wine test. Don't accept an option string that starts with =.

arty at svn.reactos.org arty at svn.reactos.org
Mon Jun 5 01:30:29 CEST 2006


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=22226&r1=22225&r2=22226&view=diff
==============================================================================
--- 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. */




More information about the Ros-diffs mailing list