From edb8bdb55506ff94e5b14dc55055f270aa0069a3 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Thu, 3 Jan 2002 02:33:51 +0000 Subject: [PATCH] Handle the lpDirectory field of the LPSHELLEXECUTEINFO. --- dlls/shell32/shellord.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/shell32/shellord.c b/dlls/shell32/shellord.c index 639aaa300f8..56853cea6b0 100644 --- a/dlls/shell32/shellord.c +++ b/dlls/shell32/shellord.c @@ -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; -- 2.11.4.GIT