Commit 0ed059cd authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Support execution of pif files.

parent 9bcdd7ca
...@@ -1827,7 +1827,7 @@ HINSTANCE16 WINAPI WinExec16( LPCSTR lpCmdLine, UINT16 nCmdShow ) ...@@ -1827,7 +1827,7 @@ HINSTANCE16 WINAPI WinExec16( LPCSTR lpCmdLine, UINT16 nCmdShow )
HeapFree( GetProcessHeap(), 0, cmdline ); HeapFree( GetProcessHeap(), 0, cmdline );
if (name != lpCmdLine) HeapFree( GetProcessHeap(), 0, name ); if (name != lpCmdLine) HeapFree( GetProcessHeap(), 0, name );
if (ret == 21) /* 32-bit module */ if (ret == 21 || ret == 11) /* 32-bit module or unknown executable*/
{ {
DWORD count; DWORD count;
ReleaseThunkLock( &count ); ReleaseThunkLock( &count );
......
...@@ -82,6 +82,7 @@ const WCHAR *DIR_System = NULL; ...@@ -82,6 +82,7 @@ const WCHAR *DIR_System = NULL;
static const WCHAR comW[] = {'.','c','o','m',0}; static const WCHAR comW[] = {'.','c','o','m',0};
static const WCHAR batW[] = {'.','b','a','t',0}; static const WCHAR batW[] = {'.','b','a','t',0};
static const WCHAR pifW[] = {'.','p','i','f',0};
static const WCHAR winevdmW[] = {'w','i','n','e','v','d','m','.','e','x','e',0}; static const WCHAR winevdmW[] = {'w','i','n','e','v','d','m','.','e','x','e',0};
extern void SHELL_LoadRegistry(void); extern void SHELL_LoadRegistry(void);
...@@ -1952,7 +1953,7 @@ BOOL WINAPI CreateProcessW( LPCWSTR app_name, LPWSTR cmd_line, LPSECURITY_ATTRIB ...@@ -1952,7 +1953,7 @@ BOOL WINAPI CreateProcessW( LPCWSTR app_name, LPWSTR cmd_line, LPSECURITY_ATTRIB
/* check for .com or .bat extension */ /* check for .com or .bat extension */
if ((p = strrchrW( name, '.' ))) if ((p = strrchrW( name, '.' )))
{ {
if (!strcmpiW( p, comW )) if (!strcmpiW( p, comW ) || !strcmpiW( p, pifW ))
{ {
TRACE( "starting %s as DOS binary\n", debugstr_w(name) ); TRACE( "starting %s as DOS binary\n", debugstr_w(name) );
retv = create_vdm_process( name, tidy_cmdline, envW, cur_dir, process_attr, thread_attr, retv = create_vdm_process( name, tidy_cmdline, envW, cur_dir, process_attr, thread_attr,
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winevdm.exe MODULE = winevdm.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = winedos kernel32 IMPORTS = winedos user32 kernel32
C_SRCS = \ C_SRCS = \
winevdm.c winevdm.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment