From afd0590bfe111aa685146514a0bc027bf91d19fa Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 13 Mar 2012 13:09:40 +0100 Subject: [PATCH] winevdm: Try DOSBox first for running DOS applications. --- programs/winevdm/winevdm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/winevdm/winevdm.c b/programs/winevdm/winevdm.c index 0dcc80606dd..b143cb8f54a 100644 --- a/programs/winevdm/winevdm.c +++ b/programs/winevdm/winevdm.c @@ -215,6 +215,8 @@ static void start_dos_exe( LPCSTR filename, LPCSTR cmdline ) MEMORY_BASIC_INFORMATION mem_info; const char *reason; + start_dosbox( filename, cmdline ); + if (VirtualQuery( NULL, &mem_info, sizeof(mem_info) ) && mem_info.State != MEM_FREE) { __wine_load_dos_exe( filename, cmdline ); @@ -225,11 +227,9 @@ static void start_dos_exe( LPCSTR filename, LPCSTR cmdline ) } else reason = "because the DOS memory range is unavailable"; - start_dosbox( filename, cmdline ); - WINE_MESSAGE( "winevdm: Cannot start DOS application %s\n", filename ); WINE_MESSAGE( " %s.\n", reason ); - WINE_MESSAGE( " Try running this application with DOSBox.\n" ); + WINE_MESSAGE( " You should install DOSBox.\n" ); ExitProcess(1); }