Commit 667ac7ff authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Fix a crash when launching Unix executables.

parent ca46969b
......@@ -1279,6 +1279,7 @@ static char **build_envp( const WCHAR *envW, char *extra_env )
char **envptr = envp;
/* first the extra strings */
if (extra_env)
for (p = extra_env; *p; p += strlen(p) + 1) *envptr++ = alloc_env_string( "", p );
/* then put PATH, TEMP, TMP, HOME and WINEPREFIX from the unix env */
if ((p = getenv("PATH"))) *envptr++ = alloc_env_string( "PATH=", p );
......
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