Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
1d732b47
Commit
1d732b47
authored
Jan 31, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevdm: Require DOSBox for running DOS executables.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ed317f76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
winevdm.c
programs/winevdm/winevdm.c
+1
-19
No files found.
programs/winevdm/winevdm.c
View file @
1d732b47
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment