Ignore case when checking .bat extension

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

 




This fixes an infinite loop when exitting the MSVC 6 installer, where a .BAT file would be run, then wcmd would be invoked to interpret it, but would fail to recognise it as a .bat file and run CreateProcess on it again.

Mike


ChangeLog: * When checking for a batch file in wcmd, use ignore case.


Index: programs/wcmd/wcmdmain.c
===================================================================
RCS file: /home/wine/wine/programs/wcmd/wcmdmain.c,v
retrieving revision 1.32
diff -u -r1.32 wcmdmain.c
--- programs/wcmd/wcmdmain.c	11 Jul 2003 03:49:19 -0000	1.32
+++ programs/wcmd/wcmdmain.c	17 Jul 2003 18:56:23 -0000
@@ -479,6 +479,8 @@
 char filetorun[MAX_PATH];
 
   WCMD_parse (command, quals, param1, param2);	/* Quick way to get the filename */
+  CharLower(param1);
+
   if (!(*param1) && !(*param2))
     return;
   if (strpbrk (param1, "\\:") == NULL) {	/* No explicit path given */

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

  Powered by Linux