Ignore case when checking .bat extension

Mike McCormack mike at codeweavers.com
Thu Jul 17 14:00:00 CDT 2003


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.


-------------- next part --------------
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 */


More information about the wine-patches mailing list