Alexandre Julliard : winevdm: Require DOSBox for running DOS executables.
Alexandre Julliard
julliard at winehq.org
Wed Jan 31 15:23:28 CST 2018
Module: wine
Branch: master
Commit: 1d732b47517a68a31483a1959f877d4adc806ddc
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1d732b47517a68a31483a1959f877d4adc806ddc
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Jan 31 17:14:13 2018 +0100
winevdm: Require DOSBox for running DOS executables.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/winevdm/winevdm.c | 20 +-------------------
1 file changed, 1 insertion(+), 19 deletions(-)
diff --git a/programs/winevdm/winevdm.c b/programs/winevdm/winevdm.c
index 08bfcfe..ccf6c8b 100644
--- a/programs/winevdm/winevdm.c
+++ b/programs/winevdm/winevdm.c
@@ -35,8 +35,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(winevdm);
-extern void __wine_load_dos_exe( LPCSTR filename, LPCSTR cmdline );
-
/*** PIF file structures ***/
#include "pshpack1.h"
@@ -213,24 +211,8 @@ static void start_dosbox( const char *appname, const char *args )
*/
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 );
- if (GetLastError() == ERROR_NOT_SUPPORTED)
- reason = "because vm86 mode is not supported on this platform";
- else
- reason = wine_dbg_sprintf( "It failed with error code %u", GetLastError() );
- }
- else reason = "because the DOS memory range is unavailable";
-
- WINE_MESSAGE( "winevdm: Cannot start DOS application %s\n", filename );
- WINE_MESSAGE( " %s.\n", reason );
- WINE_MESSAGE( " You should install DOSBox.\n" );
+ WINE_MESSAGE( "winevdm: %s is a DOS application, you need to install DOSBox.\n", filename );
ExitProcess(1);
}
More information about the wine-cvs
mailing list