forked from Mirrors/wine-wine
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: Francois Gouget <fgouget@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
f816bc93b0
commit
9cc07a2b31
|
@ -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)
|
sprintf(smask, "0x%x", mask);
|
||||||
{
|
strcat_param(shell_call, "mask", smask);
|
||||||
char smask[11];
|
|
||||||
sprintf(smask, "0x%x", mask);
|
|
||||||
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,
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue