Commit 9cc07a2b authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

shell32/tests: Trace the effective ShellExecuteEx() flags.

shell_execute_ex() adds some flags for its own internal needs. The traces should reflect that. Signed-off-by: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f816bc93
...@@ -164,17 +164,17 @@ static INT_PTR shell_execute_ex(DWORD mask, LPCSTR verb, LPCSTR file, ...@@ -164,17 +164,17 @@ static INT_PTR shell_execute_ex(DWORD mask, LPCSTR verb, LPCSTR file,
LPCSTR parameters, LPCSTR directory, LPCSTR parameters, LPCSTR directory,
LPCSTR class) LPCSTR class)
{ {
char smask[11];
SHELLEXECUTEINFOA sei; SHELLEXECUTEINFOA sei;
BOOL success; BOOL success;
INT_PTR rc; INT_PTR rc;
/* Add some flags so we can wait for the child process */
mask |= SEE_MASK_NOCLOSEPROCESS | SEE_MASK_NO_CONSOLE;
strcpy(shell_call, "ShellExecuteEx("); strcpy(shell_call, "ShellExecuteEx(");
if (mask)
{
char smask[11];
sprintf(smask, "0x%x", mask); sprintf(smask, "0x%x", mask);
strcat_param(shell_call, "mask", smask); strcat_param(shell_call, "mask", smask);
}
strcat_param(shell_call, "verb", verb); strcat_param(shell_call, "verb", verb);
strcat_param(shell_call, "file", file); strcat_param(shell_call, "file", file);
strcat_param(shell_call, "params", parameters); strcat_param(shell_call, "params", parameters);
...@@ -185,7 +185,7 @@ static INT_PTR shell_execute_ex(DWORD mask, LPCSTR verb, LPCSTR file, ...@@ -185,7 +185,7 @@ static INT_PTR shell_execute_ex(DWORD mask, LPCSTR verb, LPCSTR file,
trace("%s\n", shell_call); trace("%s\n", shell_call);
sei.cbSize=sizeof(sei); sei.cbSize=sizeof(sei);
sei.fMask=SEE_MASK_NOCLOSEPROCESS | SEE_MASK_NO_CONSOLE | mask; sei.fMask=mask;
sei.hwnd=NULL; sei.hwnd=NULL;
sei.lpVerb=verb; sei.lpVerb=verb;
sei.lpFile=file; sei.lpFile=file;
......
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