Commit 3c2c0262 authored by François Gouget's avatar François Gouget Committed by Alexandre Julliard

getenv is case insensitive.

parent d1d07fb8
......@@ -28,7 +28,7 @@ char *MSVCRT_getenv(const char *name)
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 @@ WCHAR *_wgetenv(const WCHAR *name)
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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment