getenv is case insensitive

François Gouget fgouget at codeweavers.com
Tue Dec 4 20:38:11 CST 2001


Changelog:

   François Gouget <fgouget at codeweavers.com>

 * dlls/msvcrt/environ.c
   getenv is case insensitive


-- 
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: dlls/msvcrt/environ.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/environ.c,v
retrieving revision 1.5
diff -u -r1.5 environ.c
--- dlls/msvcrt/environ.c	2001/11/23 18:30:19	1.5
+++ dlls/msvcrt/environ.c	2001/12/05 00:34:59
@@ -28,7 +28,7 @@
       pos =strchr(pp,'=');
       if ((pos) && ((pos - pp) == length))
       {
-          if (!strncmp(pp,name,length)) break;
+          if (!strncasecmp(pp,name,length)) break;
       }
   }
   if ((*pp)&& (pos))
@@ -56,7 +56,7 @@
       pos = strchrW(pp,'=');
       if ((pos) && ((pos - pp) == length))
       {
-          if (!strncmpW(pp,name,length))
+          if (!strncmpiW(pp,name,length))
           {
               pp = pos+1;
               TRACE("got %s\n",debugstr_w(pp));


More information about the wine-patches mailing list