Konstantin Kondratyuk : kernel32: Allow to execute .cmd files.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Mar 7 15:02:33 CST 2007


Module: wine
Branch: master
Commit: aefbef00f926ff04adca0940b7d3a3e085d82e27
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=aefbef00f926ff04adca0940b7d3a3e085d82e27

Author: Konstantin Kondratyuk <kondratyuk at etersoft.ru>
Date:   Wed Mar  7 18:15:31 2007 +0300

kernel32: Allow to execute .cmd files.

---

 dlls/kernel32/process.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 8cdcd72..983750e 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -90,6 +90,7 @@ const WCHAR *DIR_System = NULL;
 
 static const WCHAR comW[] = {'.','c','o','m',0};
 static const WCHAR batW[] = {'.','b','a','t',0};
+static const WCHAR cmdW[] = {'.','c','m','d',0};
 static const WCHAR pifW[] = {'.','p','i','f',0};
 static const WCHAR winevdmW[] = {'w','i','n','e','v','d','m','.','e','x','e',0};
 
@@ -1688,7 +1689,7 @@ BOOL WINAPI CreateProcessW( LPCWSTR app_name, LPWSTR cmd_line, LPSECURITY_ATTRIB
                                            inherit, flags, startup_info, info, unixdir, FALSE );
                 break;
             }
-            if (!strcmpiW( p, batW ))
+            if (!strcmpiW( p, batW ) || !strcmpiW( p, cmdW ) )
             {
                 TRACE( "starting %s as batch binary\n", debugstr_w(name) );
                 retv = create_cmd_process( name, tidy_cmdline, envW, cur_dir, process_attr, thread_attr,




More information about the wine-cvs mailing list