shellexecute patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Log:
Ove Kaaven <ovek@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;




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux