Commit 3ada2844 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Avoid duplicate '=C:' entries in the child process environment.

parent d26f658a
......@@ -1067,6 +1067,8 @@ static char **build_envp( const WCHAR *envW, const WCHAR *extra_envW )
/* now put the Windows environment strings */
for (p = env; *p; p += strlen(p) + 1)
{
if (extra_env && p[0]=='=' && 'A'<=p[1] && p[1]<='Z' && p[2]==':' && p[3]=='=')
continue; /* skipped */
if (!memcmp( p, "PATH=", 5 )) /* store PATH as WINEPATH */
*envptr++ = alloc_env_string( "WINEPATH=", p + 5 );
else if (memcmp( p, "HOME=", 5 ) &&
......
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