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
3c5eba06
Commit
3c5eba06
authored
Jul 22, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed .com binary support.
parent
fec69301
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
process.c
scheduler/process.c
+9
-4
No files found.
scheduler/process.c
View file @
3c5eba06
...
...
@@ -541,7 +541,7 @@ static void start_process(void)
*/
void
PROCESS_InitWine
(
int
argc
,
char
*
argv
[],
LPSTR
win16_exe_name
,
HANDLE
*
win16_exe_file
)
{
char
error
[
100
];
char
error
[
100
]
,
*
p
;
DWORD
stack_size
=
0
;
/* Initialize everything */
...
...
@@ -579,9 +579,6 @@ void PROCESS_InitWine( int argc, char *argv[], LPSTR win16_exe_name, HANDLE *win
switch
(
MODULE_GetBinaryType
(
main_exe_file
))
{
case
BINARY_UNKNOWN
:
MESSAGE
(
"%s: cannot determine executable type for '%s'
\n
"
,
argv0
,
main_exe_name
);
ExitProcess
(
1
);
case
BINARY_PE_EXE
:
TRACE
(
"starting Win32 binary %s
\n
"
,
debugstr_a
(
main_exe_name
)
);
if
((
current_process
.
module
=
PE_LoadImage
(
main_exe_file
,
main_exe_name
,
0
)))
goto
found
;
...
...
@@ -590,6 +587,14 @@ void PROCESS_InitWine( int argc, char *argv[], LPSTR win16_exe_name, HANDLE *win
case
BINARY_PE_DLL
:
MESSAGE
(
"%s: '%s' is a DLL, not an executable
\n
"
,
argv0
,
main_exe_name
);
ExitProcess
(
1
);
case
BINARY_UNKNOWN
:
/* check for .com extension */
if
(
!
(
p
=
strrchr
(
main_exe_name
,
'.'
))
||
FILE_strcasecmp
(
p
,
".com"
))
{
MESSAGE
(
"%s: cannot determine executable type for '%s'
\n
"
,
argv0
,
main_exe_name
);
ExitProcess
(
1
);
}
/* fall through */
case
BINARY_WIN16
:
case
BINARY_DOS
:
TRACE
(
"starting Win16/DOS binary %s
\n
"
,
debugstr_a
(
main_exe_name
)
);
...
...
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