Commit fc5134d5 authored by Ge van Geldorp's avatar Ge van Geldorp Committed by Alexandre Julliard

Enclose application name in double quotation marks, as it may contain

spaces.
parent 0bdf5d8c
......@@ -622,7 +622,7 @@ HINSTANCE WINAPI FindExecutableW(LPCWSTR lpFile, LPCWSTR lpDirectory, LPWSTR lpR
*/
BOOL WINAPI ShellExecuteExA32 (LPSHELLEXECUTEINFOA sei, SHELL_ExecuteA1632 execfunc)
{
CHAR szApplicationName[MAX_PATH],szCommandline[MAX_PATH],szPidl[20],fileName[MAX_PATH];
CHAR szApplicationName[MAX_PATH + 2],szCommandline[MAX_PATH],szPidl[20],fileName[MAX_PATH];
LPSTR pos;
void *env;
int gap, len;
......@@ -658,7 +658,9 @@ BOOL WINAPI ShellExecuteExA32 (LPSHELLEXECUTEINFOA sei, SHELL_ExecuteA1632 execf
/* process the IDList */
if ( (sei->fMask & SEE_MASK_INVOKEIDLIST) == SEE_MASK_INVOKEIDLIST) /*0x0c*/
{
SHGetPathFromIDListA (sei->lpIDList,szApplicationName);
szApplicationName[0] = '"';
SHGetPathFromIDListA (sei->lpIDList,szApplicationName + 1);
strcat(szApplicationName, "\"");
TRACE("-- idlist=%p (%s)\n", sei->lpIDList, szApplicationName);
}
else
......
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