[ros-diffs] [greatlrd] 22105: revers r22073 and r22075 bugfix for envinmert for it break firefox, not tested in trunk, I tested to revers this change in r22075

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Mon May 29 13:28:56 CEST 2006


Author: greatlrd
Date: Mon May 29 15:28:55 2006
New Revision: 22105

URL: http://svn.reactos.ru/svn/reactos?rev=22105&view=rev
Log:
revers r22073 and r22075 bugfix for envinmert for it break firefox, not tested in trunk, I tested to revers this change in r22075 
 

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=22105&r1=22104&r2=22105&view=diff
==============================================================================
--- trunk/reactos/lib/crt/misc/environ.c (original)
+++ trunk/reactos/lib/crt/misc/environ.c Mon May 29 15:28:55 2006
@@ -222,7 +222,6 @@
 
    if (option == NULL || (epos = wcschr(option, L'=')) == NULL)
       return -1;
-                  
    remove = (epos[1] == 0);
 
    /* Duplicate environment if needed. */
@@ -245,15 +244,6 @@
    memcpy(name, option, (epos - option) * sizeof(wchar_t));
    name[epos - option] = 0;
 
-   if ((*name == 0) || (wcschr(option, L'=') !=NULL))
-   {
-     /* fixme check see if name contain any space or so
-        so we really locate first char in name and compare 
-        it with equal       
-     */        
-     free(name);
-     return -1;
-   }
    /* Find the option we're trying to modify. */
    for (index = 0, wenvptr = _wenviron; *wenvptr != NULL; wenvptr++, index++)
    {




More information about the Ros-diffs mailing list