WCMD: Don't process empty lines

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

 



Changelog:
	wine/programs/wcmd/wcmdmain.c: WCMD_run_program
	Don't try to run an empty line
-- 
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/programs/wcmd/wcmdmain.c
===================================================================
RCS file: /home/wine/wine/programs/wcmd/wcmdmain.c,v
retrieving revision 1.14
diff -u -w -r1.14 wcmdmain.c
--- wine/programs/wcmd/wcmdmain.c	31 May 2002 23:40:59 -0000	1.14
+++ wine/programs/wcmd/wcmdmain.c	24 Jul 2002 11:21:28 -0000
@@ -360,6 +360,8 @@
 char filetorun[MAX_PATH];
 
   WCMD_parse (command, quals, param1, param2);	/* Quick way to get the filename */
+  if (!(*param1) && !(*param2))
+    return;
   if (strpbrk (param1, "\\:") == NULL) {	/* No explicit path given */
     if ((strchr (param1, '.') == NULL) || (strstr (param1, ".bat") != NULL)) {
       if (SearchPath (NULL, param1, ".bat", sizeof(filetorun), filetorun, NULL)) {


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

  Powered by Linux