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
f7b090ae
Commit
f7b090ae
authored
May 19, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fail more gracefully if 16-bit support is missing.
parent
0ba99b10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
Makefile.in
programs/winevdm/Makefile.in
+1
-1
winevdm.c
programs/winevdm/winevdm.c
+10
-2
No files found.
programs/winevdm/Makefile.in
View file @
f7b090ae
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
winevdm.exe
APPMODE
=
-mconsole
IMPORTS
=
winedos
user32 kernel32
IMPORTS
=
user32 kernel32
C_SRCS
=
\
winevdm.c
...
...
programs/winevdm/winevdm.c
View file @
f7b090ae
...
...
@@ -30,7 +30,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
winevdm
);
extern
void
WINAPI
wine_load_dos_exe
(
LPCSTR
filename
,
LPCSTR
cmdline
);
static
void
(
WINAPI
*
wine_load_dos_exe
)
(
LPCSTR
filename
,
LPCSTR
cmdline
);
/*** PIF file structures ***/
...
...
@@ -384,6 +384,7 @@ int main( int argc, char *argv[] )
STARTUPINFOA
info
;
char
*
cmdline
,
*
appname
,
**
first_arg
;
char
*
p
;
HMODULE
winedos
;
if
(
!
argv
[
1
])
usage
();
...
...
@@ -396,13 +397,20 @@ int main( int argc, char *argv[] )
{
if
(
!
SearchPathA
(
NULL
,
argv
[
1
],
".exe"
,
sizeof
(
buffer
),
buffer
,
NULL
))
{
WINE_MESSAGE
(
"winevdm:
can't
exec '%s': file not found
\n
"
,
argv
[
1
]
);
WINE_MESSAGE
(
"winevdm:
unable to
exec '%s': file not found
\n
"
,
argv
[
1
]
);
ExitProcess
(
1
);
}
appname
=
buffer
;
first_arg
=
argv
+
1
;
}
if
(
!
(
winedos
=
LoadLibraryA
(
"winedos.dll"
))
||
!
(
wine_load_dos_exe
=
(
void
*
)
GetProcAddress
(
winedos
,
"wine_load_dos_exe"
)))
{
WINE_MESSAGE
(
"winevdm: unable to exec '%s': 16-bit support missing
\n
"
,
argv
[
1
]
);
ExitProcess
(
1
);
}
if
(
*
first_arg
)
first_arg
++
;
/* skip program name */
cmdline
=
build_command_line
(
first_arg
);
...
...
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