WCMD: Don't process empty lines
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Wed Jul 24 06:23:44 CDT 2002
Changelog:
wine/programs/wcmd/wcmdmain.c: WCMD_run_program
Don't try to run an empty line
--
Uwe Bonnes bon at 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)) {
More information about the wine-patches
mailing list