shellexecute patch

Ove Kaaven ovehk at ping.uio.no
Wed Jan 2 11:22:31 CST 2002


Log:
Ove Kaaven <ovek at transgaming.com>
Handle the lpDirectory field of the LPSHELLEXECUTEINFO.

Index: dlls/shell32/shellord.c
===================================================================
RCS file: /cvsroot/winex/wine/dlls/shell32/shellord.c,v
retrieving revision 1.1.1.8
retrieving revision 1.3
diff -u -r1.1.1.8 -r1.3
--- dlls/shell32/shellord.c	2001/12/31 10:48:08	1.1.1.8
+++ dlls/shell32/shellord.c	2001/12/31 15:12:15	1.3
@@ -1035,15 +1035,18 @@
 
 	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;





More information about the wine-patches mailing list