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
8b929bd7
Commit
8b929bd7
authored
Sep 19, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Set the initial process context on i386.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8c103f29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+14
-1
No files found.
dlls/ntdll/signal_i386.c
View file @
8b929bd7
...
...
@@ -2600,7 +2600,20 @@ void signal_init_process( CONTEXT *context, LPTHREAD_START_ROUTINE entry )
wine_ldt_init_locking
(
ldt_lock
,
ldt_unlock
);
/* FIXME: set the initial context */
/* build the initial context */
context
->
ContextFlags
=
CONTEXT_FULL
;
context
->
SegCs
=
wine_get_cs
();
context
->
SegDs
=
wine_get_ds
();
context
->
SegEs
=
wine_get_es
();
context
->
SegFs
=
wine_get_fs
();
context
->
SegGs
=
wine_get_gs
();
context
->
SegSs
=
wine_get_ss
();
context
->
Eax
=
(
DWORD
)
entry
;
context
->
Ebx
=
(
DWORD
)
NtCurrentTeb
()
->
Peb
;
context
->
Esp
=
(
DWORD
)
NtCurrentTeb
()
->
Tib
.
StackBase
-
16
;
context
->
Eip
=
(
DWORD
)
call_thread_entry_point
;
((
void
**
)
context
->
Esp
)[
1
]
=
kernel32_start_process
;
((
void
**
)
context
->
Esp
)[
2
]
=
entry
;
return
;
error:
...
...
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