Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
bd97e859
Commit
bd97e859
authored
Aug 09, 2004
by
Markus Amsler
Committed by
Alexandre Julliard
Aug 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EXEC function 01 (load but don't execute): initial ax has to be on
child's stack.
parent
448dc4fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
module.c
dlls/winedos/module.c
+12
-0
No files found.
dlls/winedos/module.c
View file @
bd97e859
...
...
@@ -511,6 +511,18 @@ BOOL WINAPI MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID para
DOSVM_SetRMHandler
(
0x22
,
(
FARPROC16
)
MAKESEGPTR
(
context
->
SegCs
,
LOWORD
(
context
->
Eip
)));
if
(
func
)
{
/* don't execute, just return startup state */
/*
* From Ralph Brown:
* For function 01h, the AX value to be passed to the child program
* is put on top of the child's stack
*/
LPBYTE
stack
;
init_sp
-=
2
;
stack
=
(
LPBYTE
)
CTX_SEG_OFF_TO_LIN
(
context
,
init_ss
,
init_sp
);
/* FIXME: push AX correctly */
stack
[
0
]
=
0x00
;
/* push AL */
stack
[
1
]
=
0x00
;
/* push AH */
blk
->
init_cs
=
init_cs
;
blk
->
init_ip
=
init_ip
;
blk
->
init_ss
=
init_ss
;
...
...
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