Commit edb8bdb5 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Handle the lpDirectory field of the LPSHELLEXECUTEINFO.

parent 4c03649d
......@@ -1035,15 +1035,18 @@ BOOL WINAPI ShellExecuteExA (LPSHELLEXECUTEINFOA sei)
TRACE("execute:'%s','%s'\n",szApplicationName, szCommandline);
strcat(szApplicationName, " ");
strcat(szApplicationName, szCommandline);
if (szCommandline[0]) {
strcat(szApplicationName, " ");
strcat(szApplicationName, szCommandline);
}
ZeroMemory(&startup,sizeof(STARTUPINFOA));
startup.cb = sizeof(STARTUPINFOA);
if (! CreateProcessA(NULL, szApplicationName,
NULL, NULL, FALSE, 0,
NULL, NULL, &startup, &info))
NULL, sei->lpDirectory,
&startup, &info))
{
sei->hInstApp = GetLastError();
return FALSE;
......
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