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
1b3fa021
Commit
1b3fa021
authored
Nov 02, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Initialize MxCsr for new threads on x86.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
42cf6cce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+2
-1
No files found.
dlls/ntdll/signal_i386.c
View file @
1b3fa021
...
...
@@ -2716,6 +2716,7 @@ static void init_thread_context( CONTEXT *context, LPTHREAD_START_ROUTINE entry,
context
->
Eip
=
(
DWORD
)
relay
;
context
->
FloatSave
.
ControlWord
=
0x27f
;
((
XMM_SAVE_AREA32
*
)
context
->
ExtendedRegisters
)
->
ControlWord
=
0x27f
;
((
XMM_SAVE_AREA32
*
)
context
->
ExtendedRegisters
)
->
MxCsr
=
0x1f80
;
}
...
...
@@ -2741,7 +2742,7 @@ PCONTEXT DECLSPEC_HIDDEN attach_thread( LPTHREAD_START_ROUTINE entry, void *arg,
ctx
=
(
CONTEXT
*
)((
char
*
)
NtCurrentTeb
()
->
Tib
.
StackBase
-
16
)
-
1
;
init_thread_context
(
ctx
,
entry
,
arg
,
relay
);
}
ctx
->
ContextFlags
=
CONTEXT_FULL
;
ctx
->
ContextFlags
=
CONTEXT_FULL
|
CONTEXT_FLOATING_POINT
|
CONTEXT_EXTENDED_REGISTERS
;
LdrInitializeThunk
(
ctx
,
(
void
**
)
&
ctx
->
Eax
,
0
,
0
);
return
ctx
;
}
...
...
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