Commit afd0590b authored by Alexandre Julliard's avatar Alexandre Julliard

winevdm: Try DOSBox first for running DOS applications.

parent 6ac1cc68
......@@ -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);
}
......
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