From: Alois Schlögl alois.schloegl@gmail.com
--- dlls/ntdll/unix/env.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index 3e450b03234..185c60f158b 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -471,12 +471,12 @@ const char *ntdll_get_data_dir(void) * * Build the environment of a new child process. * converts WINENV (WCHAR*) to NIXENV (char*) - * Use HOSTENV stored in global var main_envp + * Use HOSTENV stored in global var environ */ char **build_envp( const WCHAR *envW ) { /* to not convert from WINENV but use HOSTENV */ - return main_envp; + return environ; }
@@ -855,7 +855,7 @@ static const char overrides_help_message[] = * * Return the initial environment. * converts HOSTENV (char*) to WINENV (WCHAR*) - * HOSTENV is stored in global var main_envp + * HOSTENV is stored in global var environ * WINENV is returned in *env. * pos: returns size [in WCHAR] of win environment * size: returns size [in bytes] of host environment