Commit bfc12443 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

shell32/tests: Fix the ShellExecute() environment variable inheritance checks.

The child process does not inherit environment variables when the calling process does not have elevated privileges and specifies SEE_MASK_NOZONECHECKS. Signed-off-by: 's avatarFrancois Gouget <fgouget@free.fr> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent c1636cd2
...@@ -648,8 +648,19 @@ static INT_PTR shell_execute_ex_(const char* file, int line, ...@@ -648,8 +648,19 @@ static INT_PTR shell_execute_ex_(const char* file, int line,
c = GetPrivateProfileIntA("Child", "Failures", -1, child_file); c = GetPrivateProfileIntA("Child", "Failures", -1, child_file);
if (c > 0) if (c > 0)
winetest_add_failures(c); winetest_add_failures(c);
okChildInt_(file, line, "ShlexecVarLE", 0); /* When NOZONECHECKS is specified the environment variables are not
okChildString_(file, line, "ShlexecVar", "Present", "Present"); * inherited if the process does not have elevated privileges.
*/
if ((mask & SEE_MASK_NOZONECHECKS) && skip_shlexec_tests)
{
okChildInt_(file, line, "ShlexecVarLE", 203);
okChildString_(file, line, "ShlexecVar", "", "");
}
else
{
okChildInt_(file, line, "ShlexecVarLE", 0);
okChildString_(file, line, "ShlexecVar", "Present", "Present");
}
} }
return rc; return rc;
......
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